forked from calccrypto/integer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·38 lines (27 loc) · 1.02 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
language: cpp
# from <http://stackoverflow.com/questions/22111549/travis-ci-with-clang-3-4-and-c11>
compiler:
- clang
- gcc
before_install:
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi
- sudo apt-get update -qq
install:
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-6; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-6"; fi
- if [ "$CXX" == "clang++" ]; then sudo apt-get install --allow-unauthenticated -qq clang-3.4; fi
- if [ "$CXX" == "clang++" ]; then export CXX="clang++-3.4"; fi
- sudo apt-get install -qq git cmake
before_script:
# not much better than git submodules, but there was never a need/want for the repo in this repo
- cd ..
- git clone https://github.com/google/googletest.git
- cd googletest
- git reset --hard d62d6c6556d96dda924382547c54a4b3afedb22c
- cmake CMakeLists.txt
- make
- cd ../integer/tests
- make
script:
- make run