Files
GDevelop/.travis.yml
Florian Rival ebb5bbde6f Fix pathfinding not working for native games and add tests for it.
Also activate extensions compilations for Travis.
2015-06-04 22:46:48 +12:00

41 lines
1.1 KiB
YAML

language: cpp
compiler:
- gcc
- clang
#Activate X Virtual Framebuffer to allow tests to
#use SFML.
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
install:
- sudo apt-get update
#Download and compile dependencies
- 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
#Compile the tests only
- mkdir .build-tests
- cd .build-tests
- cmake -DBUILD_GDJS=FALSE -DBUILD_IDE=FALSE -DBUILD_TESTS=TRUE -DNO_GUI=TRUE ..
- make -j 4
- cd ..
#Install GDJS tests dependencies
- cd GDJS/tests
- npm install
- cd ../..
script:
#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
- Extensions/PathfindingAutomatism/PathfindingAutomatism_Runtime_tests
- Extensions/LinkedObjects/LinkedObjects_Runtime_tests