Travis: Try to make Travis execute unit tests

Former-commit-id: 9e84b2acdfb08155a4e31c6cf29044700c33b216 [formerly 1049c995d1a0d4b67fe2e3abefe9823f66a92142] [formerly 79e2efaff8dd8856e272a6b42a7c314be31b0b8f [formerly a616b93c3baf5236a81b8a591cf756c28a736abe]]
Former-commit-id: ae62cf97a5ea86297dabedb7ee6c956e0bd8ccd5 [formerly 5d00bc2bbd73bd1754786960aed26af95588543c]
Former-commit-id: 623e1be4f32e802ae245fea03e30ad926d814747
This commit is contained in:
Lynix 2016-09-27 12:20:57 +02:00
parent 3a8b16f36e
commit 1403f08d35
1 changed files with 23 additions and 17 deletions

View File

@ -1,5 +1,12 @@
language: cpp
sudo: required
language:
cpp
sudo:
required
notifications:
email: true
services:
- docker
@ -7,19 +14,18 @@ before_install:
- docker build -t nazara .
script:
- docker run -v `pwd`:/NazaraEngine nazara
sh -c "cd build &&
./premake5-linux64 --with-examples gmake &&
cd gmake &&
make -j4 -f NazaraEngine.make &&
cd ../../tests &&
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../lib/gmake/x64/:../extlibs/lib/gmake/x64/
"
notifications:
email: true
branches:
only:
- master
- docker run --name Nazara -v `pwd`:/NazaraEngine nazara
sh -c "
cd build &&
./premake5-linux64 --with-examples gmake &&
cd gmake &&
make -j4 -f NazaraEngine.make
"
after_script:
- docker exec Nazara
sh -c "
cd ../../tests &&
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../lib/gmake/x64/:../extlibs/lib/gmake/x64/ &&
./NazaraUnitTests
"