mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Updated Travis configuration to launch GDJS tests
This commit is contained in:
15
.travis.yml
15
.travis.yml
@@ -6,20 +6,27 @@ compiler:
|
||||
install:
|
||||
- sudo apt-get update
|
||||
#Download and compile dependencies
|
||||
- cd ExtLibs
|
||||
- sudo apt-get install p7zip-full
|
||||
#SFML dependencies:
|
||||
- sudo apt-get install libopenal-dev libjpeg-dev libglew-dev libudev-dev libxrandr-dev libsndfile1-dev libglu1-mesa-dev libfreetype6-dev
|
||||
- cd ..
|
||||
#Compile the tests only
|
||||
- mkdir .build-tests
|
||||
- cd .build-tests
|
||||
- cmake -DBUILD_GDJS=FALSE -DBUILD_IDE=FALSE -DBUILD_EXTENSIONS=FALSE -DBUILD_TESTS=TRUE -DNO_GUI=TRUE ..
|
||||
- make -j 4
|
||||
- cd ..
|
||||
#Install GDJS tests dependencies
|
||||
- cd GDJS/tests
|
||||
- npm install
|
||||
- cd ../..
|
||||
|
||||
script:
|
||||
# - export LD_LIBRARY_PATH=$PWD/Binaries/Output/Release_Linux:$PWD/.build-tests/ExtLibs/SFML/lib:$LD_LIBRARY_PATH
|
||||
#GDJS game engine tests:
|
||||
- cd GDJS/tests
|
||||
- npm test
|
||||
- cd ../..
|
||||
#GDCore and GDCpp game engine tests:
|
||||
- cd .build-tests
|
||||
# - export LD_LIBRARY_PATH=$PWD/Binaries/Output/Release_Linux:$PWD/.build-tests/ExtLibs/SFML/lib:$LD_LIBRARY_PATH
|
||||
- Core/GDCore_tests
|
||||
- GDCpp/GDCpp_tests
|
||||
- GDCpp/GDCpp_tests
|
@@ -4,7 +4,7 @@
|
||||
"description": "Tests for the HTML5 engine of GDevelop",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "karma start --browsers Firefox --single-run"
|
||||
"test": "./node_modules/karma/bin/karma start --browsers PhantomJS --single-run"
|
||||
},
|
||||
"keywords": [
|
||||
"HTML5",
|
||||
@@ -14,12 +14,12 @@
|
||||
"Develop"
|
||||
],
|
||||
"author": "Florian Rival",
|
||||
"license": "LPGL",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"mocha": "^1.21.4",
|
||||
"expect.js": "^0.3.1",
|
||||
"karma": "^0.12.22",
|
||||
"karma-mocha": "^0.1.9",
|
||||
"karma-firefox-launcher": "^0.1.3",
|
||||
"expect.js": "^0.3.1"
|
||||
"karma-phantomjs-launcher": "^0.1.4",
|
||||
"mocha": "^1.21.4"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user