forked from Illumina/interop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
145 lines (133 loc) · 4.24 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
# Configuration for Travis CI Continuous Integration Service
#
# Build status: https://travis-ci.org/Illumina/interop
#
# Tested configurations:
#
# Linux Clang 3.7
# - Release/Debug
# Linux GCC
# - Release/Debug
# - 4.6/4.9
# OSX Clang
# - Release/Debug
#
# No support for 32-bit Linux
#
# TODO: For Python wheels, support: https://github.com/pypa/manylinux
# TODO: Create individual builds for each language
language: cpp
sudo: required
matrix:
include:
- os: osx
compiler: clang
env: DEPLOY_BUILD=true SCRIPT="bash ./tools/package.sh $PWD $PWD/dist travis OFF Release ALL"
- os: linux
compiler: clang
env: SCRIPT="bash ./tools/package.sh $PWD $PWD/dist travis ON Debug 2.7"
- os: linux
compiler: gcc
env: SCRIPT="bash ./tools/package.sh $PWD $PWD/dist travis ON Debug 2.7"
- os: linux
compiler: gcc
sudo: required
services:
- docker
env: DEPLOY_BUILD=true DOCKER_IMAGE=ezralanglois/interop SCRIPT="docker run --rm -v $PWD:/io ezralanglois/interop sh /io/tools/package.sh /io /io/dist travis"
- os: osx
compiler: clang
env: SCRIPT="bash ./tools/package.sh $PWD $PWD/dist travis OFF Debug 2.7"
- os: linux
compiler: gcc
addons: &1
apt:
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
- sourceline: 'ppa:teward/swig3.0'
packages:
- g++-5
- libicu-dev
- swig3.0
- doxygen
- graphviz
- mono-complete
- libgtest-dev
- python-numpy
env: COMPILER_VERSION=-5 SCRIPT="bash ./tools/package.sh $PWD $PWD/dist travis ON Debug 2.7"
- os: linux
compiler: clang
addons: &2
apt:
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
- sourceline: 'ppa:teward/swig3.0'
packages:
- g++-4.9
- clang-3.7
- libicu-dev
- swig3.0
- doxygen
- graphviz
- mono-complete
- libgtest-dev
- python-numpy
env: COMPILER_VERSION=-3.7 SCRIPT="bash ./tools/package.sh $PWD $PWD/dist travis ON Debug 2.7"
addons:
apt:
sources:
- george-edison55-precise-backports
- sourceline: 'ppa:teward/swig3.0'
packages:
- libicu-dev
- swig3.0
- doxygen
- graphviz
- mono-complete
- libgtest-dev
- python-numpy
cache:
directories:
- $HOME/NUnit-2.6.4
- $HOME/cmake
install:
- source tools/prereqs/travis-${TRAVIS_OS_NAME}-install.sh
- if [ ! -z $DOCKER_IMAGE ]; then docker pull $DOCKER_IMAGE ; fi
- ls $HOME/NUnit-2.6.4
before_script:
- export CC="${COMPILER_HOME}${CC}${COMPILER_VERSION}"
- export CXX="${COMPILER_HOME}${CXX}${COMPILER_VERSION}"
- cmake -version
- which $CC
- which $CXX
script:
- $SCRIPT
#white list broke the tag push deployment
branches:
only:
- master
- /v\d\.\d\.\d/
notifications:
email: false
before_deploy:
- export PATH=/opt/pyenv:/opt/pyenv/shims:$PATH
- if [ "$TRAVIS_OS_NAME != "osx ] ; then sudo env "PATH=$PATH" pyenv install 3.5.4 -s || true; fi
- if [ "$TRAVIS_OS_NAME != "osx ] ; then sudo env "PATH=$PATH" pyenv global 3.5.4; fi
- if [ "$TRAVIS_OS_NAME != "osx ] ; then sudo env "PATH=$PATH" pip install twine; fi
- if [ "$TRAVIS_TAG" != "" ] && [ "$DEPLOY_BUILD" == "true" ] ; then twine upload --skip-existing $PWD/dist/*.whl; fi
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: qUB+Gaq1jYzYgMW+rh3mYquzFpt4cuJ+C89L0o/NkkSrCeDizftNL0P2mBXMqeUOLEWDFGwMgWcdTSs0MMdoOmYKp0hMFbCzipbwANKdzcmUjYx9VDlft9iEnKyjhnwLTyljvcK2OYWMCiPkTv+V4O0H9/T8bZEGQ/zBElCeYJPSdjNTRSFzfe8XqzGsNoty4YDlK89UIWy2Pmw38qRIWpu2rk3WAMDxsJgSO7uPs5xxaLioAfukhV7thbeQjYQn42OQ8eA2AwQa478KtlY2V5XtZqFQtdDPosvtS5HXYCXvnCWJeUbB0KrE5o+Je8njm4e+K30WDfpDGiCPU7Guz52FN551/5L5iv0+6++ZOt8fxKSMF+4H42JxDzDMdzvJmTImdIP2ACm5EnY8pJXOVnXbemDNNnpjhE8CqMVSqfiB+QDLasiZ3PBAaqPbb7XVYKpxUE1nGQCIynHjS7KClKo0EKrvJo2vWSgeXW5wBtmGuIsgMkPcNTtqM6WEui1mdoKQXrvAl4SxdgwhvmA6RYhva+yBIGf9HPqfGL7c2ByQADULLtc8SgOjqbibDO+jVITTtWsliaD53nXJKHzU8JkOsAJNl0Le+kyQKNoHaMersHrZzccrCeRkGOES5g/a+2a3PF0hRkgQjmVQsEEPw9C1rLEXG5gTUL3gd5UmD58=
file_glob: true
file: $PWD/dist/*.*
on:
repo: Illumina/interop
branch: master
tags: true
condition:
- "$DEPLOY_BUILD == true"