File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments