-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy path.travis.yml
70 lines (64 loc) · 1.81 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
dist: xenial
language: cpp
sudo: false
branches:
except:
- /^(wip\/)?(appveyor|msvc|mingw|windows)(\-.+)?$/
addons:
apt:
sources: &default_sources
- ubuntu-toolchain-r-test
# the anchors element doesn't do anything but itself except define some anchors to be used later as aliases
anchors:
- &unit_command ./unit-test
- &uarch_command ./uarch-bench --test-tag=~slow
matrix:
include:
# clang-5.0 is the default installed on travis VMs
- compiler: clang-default
env: TRUE_CC=clang TRUE_CXX=clang++ CXXFLAGS=-stdlib=libc++
addons:
apt:
sources:
- *default_sources
- llvm-toolchain-trusty-5.0
packages:
- libc++abi1
- libc++1
- compiler: gcc-4.9
env: TRUE_CC=gcc-4.9 TRUE_CXX=g++-4.9
addons:
apt:
sources:
- *default_sources
packages:
- gcc-4.9
- g++-4.9
- compiler: gcc-6
env: TRUE_CC=gcc-6 TRUE_CXX=g++-6
addons:
apt:
sources:
- *default_sources
packages:
- gcc-6
- g++-6
- compiler: clang-6.0
env: TRUE_CC=clang-6.0 TRUE_CXX=clang++-6.0
addons:
apt:
sources:
- *default_sources
- llvm-toolchain-xenial-6.0
packages:
- clang-6.0
- clang++-6.0
before_install:
# Travis will set CC and CXX after the env commands specified in the matrix are run, overwriting whatever
# we've specified there, so we need to reset them here. See also https://github.com/travis-ci/travis-ci/issues/6633 .
- CC="${TRUE_CC:-$CC}"
- CXX="${TRUE_CXX:-$CXX}"
script:
- set -e && echo "CC is ${CC}, CXX is ${CXX}" && ${CC} --version && ${CXX} --version
- make
- ./avx-turbo --no-pin --max-threads 2