2016-08-08 17:06:08 +03:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
|
|
|
dist: trusty
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-4.8
|
|
|
|
- g++-4.8
|
|
|
|
|
|
|
|
install:
|
2017-02-06 15:56:26 +03:00
|
|
|
- external/CppSharp/build/InstallMono.sh
|
2016-08-08 17:06:08 +03:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
|
|
|
|
|
|
|
|
script: |
|
2016-08-17 19:30:56 +03:00
|
|
|
if [ "$TRAVIS_OS_NAME" = "linux" ]; then PREMAKE=premake5-linux-64; else PREMAKE=premake5-osx; fi &&
|
2017-01-25 15:27:29 +03:00
|
|
|
external/CppSharp/build/$PREMAKE --file=build/premake5.lua gmake &&
|
2016-08-17 23:30:59 +03:00
|
|
|
if [ "$TRAVIS_OS_NAME" = "osx" ]; then export PATH=$PATH:/Library/Frameworks/Mono.framework/Versions/Current/bin/; fi &&
|
2016-08-17 20:57:00 +03:00
|
|
|
config=release make -C build/gmake/ &&
|
2016-08-08 17:06:08 +03:00
|
|
|
TEST_RESULT=0 &&
|
2016-08-17 22:15:15 +03:00
|
|
|
for test in build/gmake/lib/Release/*.Tests*; do $test || TEST_RESULT=$?; done &&
|
2016-08-08 17:06:08 +03:00
|
|
|
exit "$TEST_RESULT"
|