-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (38 loc) · 1.23 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
language: cpp
compiler:
- clang
- gcc
# The version of CMake is too old, so try to download a newer one:
# https://github.com/travis-ci/travis-ci/issues/7437
#
# But the version of wget is too old and gives:
# ERROR: no certificate subject alternative name matches
# requested host name `cmake.org'.
# To connect to cmake.org insecurely, use `--no-check-certificate'.
#
# So use curl instead:
# https://github.com/travis-ci/travis-ci/issues/5059
#
# Also update GCC because it is too old:
# https://github.com/travis-ci/travis-ci/issues/1379
#
before_install:
- mkdir $HOME/usr
- export PATH="$HOME/usr/bin:$PATH"
- curl -O https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.sh
- chmod +x cmake-3.7.2-Linux-x86_64.sh
- ./cmake-3.7.2-Linux-x86_64.sh --prefix=$HOME/usr --exclude-subdir --skip-license
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
- if [ "$CXX" = "clang++" ]; then sudo apt-get install -qq libstdc++-4.8-dev; fi
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
before_script:
- mkdir build
- cd build
- cmake --version
- cmake ../src
script:
- make
- cd test
- ./runUnitTests