forked from EBIvariation/vcf-validator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
209 lines (194 loc) · 5.29 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
sudo:
- false
language:
- cpp
cache:
directories:
- linux_dependencies
- osx_dependencies
jobs:
include:
# OS X Clang
- os: osx
osx_image: xcode9.3
env: C_COMPILER=clang CXX_COMPILER=clang++
before_install:
- brew install ninja
# OS X GCC
- os: osx
osx_image: xcode9.3
env: C_COMPILER=gcc CXX_COMPILER=g++
before_install:
- brew install ninja
# Clang 4.0
- os: linux
compiler: clang
env: C_COMPILER=clang-4.0 CXX_COMPILER=clang++-4.0
addons:
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
packages:
- clang-4.0
- libboost1.55-dev
- libboost-filesystem1.55-dev
- libboost-iostreams1.55-dev
- libboost-program-options1.55-dev
- libboost-regex1.55-dev
- libboost-log1.55-dev
- ninja-build
# Clang 5.0
- os: linux
compiler: clang
env: C_COMPILER=clang-5.0 CXX_COMPILER=clang++-5.0
addons:
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
- libboost1.55-dev
- libboost-filesystem1.55-dev
- libboost-iostreams1.55-dev
- libboost-program-options1.55-dev
- libboost-regex1.55-dev
- libboost-log1.55-dev
- ninja-build
# GCC 4.8
- os: linux
compiler: gcc
env: C_COMPILER=gcc-4.8 CXX_COMPILER=g++-4.8
addons:
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- libboost1.55-dev
- libboost-filesystem1.55-dev
- libboost-iostreams1.55-dev
- libboost-program-options1.55-dev
- libboost-regex1.55-dev
- libboost-log1.55-dev
- ninja-build
# GCC 5
- os: linux
compiler: gcc
env: C_COMPILER=gcc-5 CXX_COMPILER=g++-5
addons:
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- libboost1.55-dev
- libboost-filesystem1.55-dev
- libboost-iostreams1.55-dev
- libboost-program-options1.55-dev
- libboost-regex1.55-dev
- libboost-log1.55-dev
- ninja-build
# GCC 6
- os: linux
compiler: gcc
env: C_COMPILER=gcc-6 CXX_COMPILER=g++-6
addons:
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- libboost1.55-dev
- libboost-filesystem1.55-dev
- libboost-iostreams1.55-dev
- libboost-program-options1.55-dev
- libboost-regex1.55-dev
- libboost-log1.55-dev
- ninja-build
- stage: "Linux release"
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file:
- bin/vcf_validator_linux
- bin/vcf_debugulator_linux
- bin/vcf_assembly_checker_linux
skip_cleanup: true
on:
repo: EBIvariation/vcf-validator
tags: true
os: linux
compiler: gcc
env: C_COMPILER=gcc-6 CXX_COMPILER=g++-6
addons:
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- libboost1.55-dev
- libboost-filesystem1.55-dev
- libboost-iostreams1.55-dev
- libboost-program-options1.55-dev
- libboost-regex1.55-dev
- libboost-log1.55-dev
- ninja-build
- stage: "Mac release"
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file:
- bin/vcf_validator_macos
- bin/vcf_debugulator_macos
- bin/vcf_assembly_checker_macos
skip_cleanup: true
on:
repo: EBIvariation/vcf-validator
tags: true
os: osx
osx_image: xcode9.3
env: C_COMPILER=clang CXX_COMPILER=clang++
before_install:
- brew install ninja
before_script:
- |
if [[ $TRAVIS_OS_NAME == "linux" ]]; then
./install_dependencies.sh
fi
- |
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
./install_dependencies.sh osx
fi
script:
- cmake -DCMAKE_CXX_COMPILER=${CXX_COMPILER} -DCMAKE_C_COMPILER=${C_COMPILER} ./ -GNinja
- ninja -v -j2
- ninja test
- |
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
otool -L bin/vcf_validator
fi
before_deploy:
- |
if [[ $TRAVIS_OS_NAME == "linux" ]]; then
mv bin/vcf_validator bin/vcf_validator_linux
mv bin/vcf_debugulator bin/vcf_debugulator_linux
mv bin/vcf_assembly_checker bin/vcf_assembly_checker_linux
fi
- |
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
mv bin/vcf_validator bin/vcf_validator_macos
mv bin/vcf_debugulator bin/vcf_debugulator_macos
mv bin/vcf_assembly_checker bin/vcf_assembly_checker_macos
fi