forked from libdynd/libdynd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
184 lines (173 loc) · 5.37 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
sudo: required
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- kalakris-cmake
packages:
- gcc-4.9
- g++-4.9
- cmake
- s3cmd
cache:
directories:
- $HOME/libdynd/build
matrix:
include:
- compiler: gcc
sudo: required
env: -fsanitize=address
cache:
directories:
- $HOME/intel
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- kalakris-cmake
packages:
- gcc-5
- g++-5
- cmake
- doxygen
before_install:
- export CC="gcc-5"
- export CXX="g++-5"
# - wget https://raw.githubusercontent.com/nemequ/icc-travis/master/install-icc.sh; bash install-icc.sh --components mkl
# - if [ ! -d "$HOME/intel" ]; then wget https://raw.githubusercontent.com/nemequ/icc-travis/master/install-icc.sh; bash install-icc.sh --components mkl; fi
script:
# - source $HOME/intel/mkl/bin/mklvars.sh intel64
- cmake -DDYND_BUILD_DOCS=OFF -DCMAKE_CXX_FLAGS="-fsanitize=address" -DDYND_BUILD_PLUGINS=OFF ..
- make -j4 || exit 1
- ./tests/test_libdynd
- compiler: clang
env: -fsanitize=address
script:
- cmake -DCMAKE_CXX_FLAGS="-fsanitize=address" ..
- make -j4 || exit 1
- ./tests/test_libdynd
- compiler: gcc
env: CONDA=true
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
- bash Miniconda-latest-Linux-x86_64.sh -b
- export PATH=$HOME/miniconda2/bin:$PATH
- conda install --yes conda-build jinja2 cmake
before_script:
- export CC="gcc-4.9"
- export CXX="g++-4.9"
script:
- conda build conda.recipe
- language: objective-c
os: osx
osx_image: xcode6.4
compiler: clang
env: CONDA=true
addons:
before_script:
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh
- bash Miniconda-latest-MacOSX-x86_64.sh -b
- export PATH=$HOME/miniconda2/bin:$PATH
- conda install --yes conda-build jinja2
script:
- conda build conda.recipe
- language: python
env: VERBOSE=1
compiler: gcc
python: 3.5
addons:
apt:
sources:
- kalakris-cmake
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- cmake
cache:
directories:
- $HOME/.cache/pip
- $HOME/dynd-python/build
before_install:
- export CC=gcc-6
- export CXX=g++-6
- travis_retry pip install --install-option="--no-cython-compile" Cython==0.24
before_script:
- cd ..
- travis_retry git clone --depth=1 https://github.com/libdynd/dynd-python.git
- mv libdynd dynd-python/libdynd
- cd dynd-python
script:
- python setup.py install
- cd ..
- python -c "import dynd; dynd.test(verbosity=2, exit=True)"
after_script:
- compiler: gcc
env: DYND_COVERAGE=ON
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- kalakris-cmake
packages:
- gcc-6
- g++-6
- cmake
- lcov
before_install:
- export CC="gcc-6"
- export CXX="g++-6"
- gem install coveralls-lcov
- wget https://github.com/linux-test-project/lcov/archive/v1.12.zip
- unzip v1.12.zip
- export PATH=${PWD}/lcov-1.12/bin:$PATH
- cp /usr/bin/gcov-6 ${PWD}/lcov-1.12/bin/gcov
before_script:
- mkdir build
- pushd build
- cmake -DDYND_COVERAGE=${DYND_COVERAGE} ..
script:
- make || exit 1
- make coverage
after_script:
- popd
- coveralls-lcov build/coverage.info.cleaned
language: cpp
before_install:
before_script:
- mkdir build
- pushd build
- cmake ..
script:
- make -j4 || exit 1
- ./tests/test_libdynd
before_deploy:
- mkdir deploy
- mv build/*.tar.gz deploy/
- conda install --yes anaconda-client
- export CONDA_OUTPUT=`conda build --output conda.recipe | grep bz2`
- anaconda --token $ANACONDA_TOKEN upload $CONDA_OUTPUT --user dynd --channel dev
deploy:
skip_cleanup: true
provider: s3
access_key_id: AKIAJEH6A3L3S4BYA5VA
secret_access_key:
secure: EmyhQ2+CtsIumNEskhjZOC/ZWYYOoPC1bQLijwuFXU8WwyEpoaB1CqLRHdiJGzVSRRr3SW3p6p8z5wxsLTBZtKQrGnP0Z4J9L7bZ5HsGRSshlqT0Zm1/AYSCjbFgNFKe1kIjaCamhk2/cNt1WKgx/cZ/tdxMKjhc8reavYBfCnU=
bucket: libdynd
local_dir: deploy
on:
condition: ${CONDA:-false} == "true"
notifications:
email: false
on_success: change
on_failure: always
env:
global:
# Anaconda.org?
- secure: KJZ5DWK3iAmthDnPaXz/S8aQFa6zVlD+CWCPXM+vgkiJQG5qgJfn5t2yy5n3mVyS0qZFd/LrFJ6ZqjUr/BKFDqGPBxESYIAOOgN+cXIEWxkeGFEHxOEK9QBS6aq6GBhyQlteWcqozYsG93oSVh+Xiv9tHl4m1mHXOHk2llQXy4g=
# Old Intel Serial Number?
- secure: Qt/St9copUdPo4kej+9DtLDCzIAkDo/PDP0Ac244yF+8dRac3KhskRVVURNcCMonUeuqS5Dm5qcQl9b/L4P9Gkpn1aDKPHMp7pgTZHZLJ7VIHgFrSWo545mqV0fcYN+GLpaSqd8NwdUi5+1aHGWTtrw4BoIO4DSgV4eiIVEdRbA=
# Intel Serial Number
- secure: "TIZuSCCQWGf10FZlt150X5BXPhwjXretYxsnFAJtIDKoNPFZ89SW5/ApGv8kq55j5JsK6tp4VKPA9TujJ1hwEqIFP1WNv9CEqlrnB9VXbFve0WOYwdRmWchIPCUyqjJSdgPXSCzVoj2sFP9JZkKCaXEG+49fGLfkwYOeznecYpw="