-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
100 lines (94 loc) · 2.5 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Build script for Travis CI container-based architecture
# Stephen Fegan - [email protected] - 2015-11-01
dist: trusty
sudo: false
language: cpp
addons:
apt:
sources: &common_sources
- ubuntu-toolchain-r-test
packages: &common_packages
- libfftw3-dev
matrix:
include:
- compiler: gcc-4.9
env: BUILD_TYPE=Release BUILD_CC=gcc-4.9 BUILD_CXX=g++-4.9
addons: &gcc49_addons
apt:
sources:
- *common_sources
packages:
- *common_packages
- g++-4.9
- compiler: gcc-5
env: BUILD_TYPE=Release BUILD_CC=gcc-5 BUILD_CXX=g++-5
addons: &gcc5_addons
apt:
sources:
- *common_sources
packages:
- *common_packages
- g++-5
- compiler: gcc-6
env: BUILD_TYPE=Release BUILD_CC=gcc-6 BUILD_CXX=g++-6
addons: &gcc6_addons
apt:
sources:
- *common_sources
packages:
- *common_packages
- g++-6
- compiler: gcc-7
env: BUILD_TYPE=Release BUILD_CC=gcc-7 BUILD_CXX=g++-7
addons: &gcc7_addons
apt:
sources:
- *common_sources
packages:
- *common_packages
- g++-7
- compiler: clang-3.9
env: BUILD_TYPE=Release BUILD_CC=clang-3.9 BUILD_CXX=clang++-3.9
addons: &clang39_addons
apt:
sources:
- *common_sources
- llvm-toolchain-trusty-3.9
packages:
- *common_packages
- clang-3.9
- compiler: clang-4.0
env: BUILD_TYPE=Release GEANT4=FALSE BUILD_CC=clang-4.0 BUILD_CXX=clang++-4.0
addons: &clang40_addons
apt:
sources:
- *common_sources
- llvm-toolchain-trusty-4.0
packages:
- *common_packages
- clang-4.0
- compiler: clang-5.0
env: BUILD_TYPE=Release BUILD_CC=clang-5.0 BUILD_CXX=clang++-5.0
addons: &clang50_addons
apt:
sources:
- *common_sources
- llvm-toolchain-trusty-5.0
packages:
- *common_packages
- clang-5.0
before_install:
- if test -n "$BUILD_CC"; then export CC="$BUILD_CC"; fi
- if test -n "$BUILD_CXX"; then export CXX="$BUILD_CXX"; fi
before_script:
- cmake -version
- $CC -v
script:
- |
mkdir mybuild-travis &&
cd mybuild-travis &&
cmake -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
.. &&
make -j3 &&
./dft_simd