Skip to content

Commit 6b07fae

Browse files
committed
[travis] Added first version of travis
1 parent f288639 commit 6b07fae

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.travis.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
sudo: required
2+
dist: trusty
3+
language: cpp
4+
5+
matrix:
6+
include:
7+
- os: linux
8+
compiler: gcc
9+
env: BTYPE=Release
10+
- os: osx
11+
compiler: clang
12+
env: BTYPE=Release
13+
14+
before_install:
15+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --yes update; fi
16+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt-get update -qq; fi
17+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -qq gcc-6 g++-6; fi
18+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 90; fi
19+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90; fi
20+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --yes install libopenimageio-dev; fi
21+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --yes install libglew-dev; fi
22+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --yes install freeglut3-dev; fi
23+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --yes install ocl-icd-opencl-dev; fi # opencl-dev, nvidia-opencl-dev, ocl-icd-opencl-dev
24+
# - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install gcc; fi
25+
26+
install:
27+
- pwd
28+
- ls
29+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then g++ --version; fi
30+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./Tools/premake/linux64/premake5 --help || true; fi
31+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./Tools/premake/linux64/premake5 --allow_cpu_devices --safe_math --os=linux --verbose gmake || true; fi
32+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./Tools/premake/osx/premake5 --help || true; fi
33+
# - if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./Tools/premake/osx/premake5 --use_embree --use_opencl --embed_kernels --allow_cpu_devices --safe_math; fi
34+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./Tools/premake/osx/premake5 --allow_cpu_devices --safe_math --os=macosx --verbose gmake; fi
35+
36+
script:
37+
- make config=release_x64
38+
- export LD_LIBRARY_PATH=`pwd`/Bin/Release/x64/:${LD_LIBRARY_PATH}
39+
- cd UnitTest
40+
- ../Bin/Release/x64/UnitTest64 --gtest_list_tests
41+
- ../Bin/Release/x64/UnitTest64
42+

0 commit comments

Comments
 (0)