-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
84 lines (69 loc) · 3.38 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
sudo: require
env:
global:
# For coverity scan:
# The encrypted COVERITY_SCAN_TOKEN, created via the "travis encrypt" command
# using the project repo's public key
- secure: "wbQ8iIUC1cEEfILrniD7TNKv24EQ8CDAhn6V5NnD1VltotmA0dtPEkkaL58dRAz6+UZfX8Qmr9tKrD4IiPhQI99uMz9N75S57cWeiQQbbv7Zef5gQRdalfV2VpQu7D8xBba89ATN6aT3m+hiJcnAMB10axwLQuHANXsdHqu9E98O1IKSH1J1r8/WrYij3cIsUVPYtJGwgki1Lkfy0frYUsq40TNpssUeHEF5cTfbP0G2NsrcHoxfuhltsKSLUgEd7qI6VSXlegLTX/2C6LgVfWp1xhP4yF6kSWpfN+0QKujo8gSm8nnEvGRwNDP1MIXgsCEaQEQRQVQmgViRN/nHYGDmfXXd5VJt+qSq1KYfLgXs0YZyVZkndR5SyTijw/aAzdqNmKUlkqDcFzYeCXpAu8DVP65s0tmdMmwZoodiKHBdkubCcsexB2F7028r0KTK786QzQCOwSuMXdT9vQAxB4EmpxpOy+KAyp9rpGldDVvcl6ayV2r5VL5bhIMhpSyOTUgRDKROyiOy2EU90sXstqOOWWYQ2AsY63bdtDNtxFSdTZeTt2poFQ/W+tdhaqm+iMjEICJMQUss1/TvGhcvgREXobjtHMhrEEoot8y+ikcrUtEPaFc0On20m/wu5cvR7eL+gu6lmztJAiMxjTTFdL6fRp0b9GpCtfHwCY432Gw="
matrix:
include:
- os: linux
dist: xenial
compiler: gcc
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
# For coverity scan:
coverity_scan:
project:
name: "TzuChieh/Photon-v2"
description: "Photon-v2 build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "export CC=gcc-7 && export CXX=g++-7 && cov-configure --comptype gcc --compiler gcc-7 && bash ./setup.sh && cd ./build/ && cmake -DCMAKE_BUILD_TYPE=release ../"
build_command: "make -j4"
branch_pattern: coverity_scan
# Visit https://gist.github.com/yamaya/2924292 for Xcode <=> clang versions.
# Visit https://en.wikipedia.org/wiki/Darwin_(operating_system) for macOS <=> darwin versions.
# Visit https://docs.travis-ci.com/user/reference/osx/#macos-version for macOS version on Travis-CI.
# Currently using: macOS 10.14, Xcode 10.2.1 (10E1001), Apple LLVM version 10.0.1 (clang-1001.0.46.4)
- os: osx
osx_image: xcode10.2
compiler: clang
language: cpp
before_install:
# For coverity scan:
- if [ "$COVERITY_SCAN_BRANCH" == "1" ]; then echo -n | openssl s_client -connect https://scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-; fi
install:
# upgrade python and cmake on macOS
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew upgrade python; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew upgrade cmake; fi
before_script:
- if [ $TRAVIS_OS_NAME == linux ]; then export CC=gcc-7 && export CXX=g++-7; fi
- ld -v
- cmake --version
- python --version
- python3 --version
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then gcc --version; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then g++ --version; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then gcc-7 --version; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then g++-7 --version; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then clang --version; fi
script:
- if [ "$COVERITY_SCAN_BRANCH" == "1" ];
then
echo "will not build and test on coverty-scan branch";
exit 0;
fi
- bash ./setup.sh
- cd ./build/
- cmake -DCMAKE_BUILD_TYPE=release -DBUILD_ENGINE_TEST=ON ../
#- make -j4 VERBOSE=1
- make -j4
# Run engine unit test (working directory should be "./build/")
- ./bin/EngineTest