-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
49 lines (41 loc) · 1.3 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
# from <https://github.com/taocpp/PEGTL/blob/master/.travis.yml>
language: cpp
os: linux
sudo: false
env:
- CXX_COMPILER=g++-4.9
- CXX_COMPILER=g++-5
- CXX_COMPILER=g++-6
- CXX_COMPILER=g++-7
- CXX_COMPILER=g++-8
- CXX_COMPILER=clang++-3.8
- CXX_COMPILER=clang++-3.9
- CXX_COMPILER=clang++-4.0
- CXX_COMPILER=clang++-5.0
- CXX_COMPILER=clang++-6.0
- CXX_COMPILER=clang++-7
- CXX_COMPILER=clang++-8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
update: false
before_install:
- if [[ "${CXX_COMPILER}" =~ "clang++" ]]; then wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -; sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-$(lsb_release -c | awk '{printf $2}')-${CXX_COMPILER##*-} main" -y; fi
- sudo apt-get update
- sudo apt-get install "${CXX_COMPILER}" cmake pkg-config $(if [[ "${CXX_COMPILER}" =~ "clang++-" ]]; then echo llvm; fi) -y
before_script:
- export CXX="${CXX_COMPILER}"
- export GTEST_COLOR=1
# 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
- mkdir build
- cd build
- cmake ..
- make
- cd ../../Hashes/tests
script:
- make
- make test