forked from electronicarts/EASTL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (47 loc) · 2.58 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
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- clang
matrix:
exclude:
- os: osx
compiler: gcc
install:
# Install CMake 3.4.3
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget --no-check-certificate http://cmake.org/files/v3.4/cmake-3.4.3-Linux-x86_64.tar.gz ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tar -xzf cmake-3.4.3-Linux-x86_64.tar.gz ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget --no-check-certificate http://cmake.org/files/v3.4/cmake-3.4.3-Darwin-x86_64.tar.gz ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then tar -xzf cmake-3.4.3-Darwin-x86_64.tar.gz ;fi
script:
- mkdir build
- cd build
# Build project (linux)
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ../cmake-3.4.3-Linux-x86_64/bin/cmake .. ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ../cmake-3.4.3-Linux-x86_64/bin/cmake --build . --config Debug ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ../cmake-3.4.3-Linux-x86_64/bin/cmake --build . --config Release ;fi
# Build project (osx)
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ../cmake-3.4.3-Darwin-x86_64/CMake.app/Contents/bin/cmake .. ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ../cmake-3.4.3-Darwin-x86_64/CMake.app/Contents/bin/cmake --build . --config Debug ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ../cmake-3.4.3-Darwin-x86_64/CMake.app/Contents/bin/cmake --build . --config Release ;fi
after_success:
# Run tests
- cd test
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ../../cmake-3.4.3-Linux-x86_64/bin/ctest -C Release -V ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ../../cmake-3.4.3-Darwin-x86_64/CMake.app/Contents/bin/ctest -C Release -V ;fi
# Run benchmarks
- cd ..
- cd benchmark
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ../../cmake-3.4.3-Linux-x86_64/bin/ctest -C Release -V ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ../../cmake-3.4.3-Darwin-x86_64/CMake.app/Contents/bin/ctest -C Release -V ;fi