-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
85 lines (81 loc) · 1.95 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
language: python
dist: trusty
cache:
apt: true
# We use three different cache directory
# to work around a Travis bug with multi-platform cache
directories:
- $HOME/.cache/pip
- $HOME/download
env:
global:
# Directory where tests are run from
- TEST_DIR=$HOME/tmp/test_dir
- MODULE=stream_graph
- WHEEL_FOLDER=wheelhouse
- TWINE_USERNAME=ysig
- DEPLOY_SDIST="false"
- COVERAGE="false"
- DEPLOY_WHEEL="false"
- FLAKE="false"
matrix:
include:
- sudo: required
services:
- docker
env:
- PIP=pip
- PYTHON=python
- CIBW_BUILD="cp35-*"
- FLAKE="true"
- DEPLOY_SDIST="true"
- sudo: required
services:
- docker
env:
- PIP=pip
- PYTHON=python
- CIBW_BUILD="cp36-*"
- sudo: required
services:
- docker
env:
- PIP=pip
- PYTHON=python
- CIBW_BUILD="cp37-*"
- os: osx
language: generic
sudo: required
env:
- PIP=pip3
- PYTHON=python3
- TOXENV=py35
- CIBW_BUILD="cp35-macosx_10_6_intel"
- os: osx
language: generic
sudo: required
env:
- PIP=pip3
- PYTHON=python3
- TOXENV=py35
- CIBW_BUILD="cp36-macosx_10_6_intel"
- os: osx
language: generic
sudo: required
env:
- PIP=pip3
- PYTHON=python3
- TOXENV=py35
- CIBW_BUILD="cp37-macosx_10_6_intel"
script:
- |
if [[ "$FLAKE" == "true" ]]; then
$PIP install flake8 --upgrade; flake8 $TRAVIS_BUILD_DIR/$MODULE;
fi
- $PIP install cibuildwheel
- export CIBW_ENVIRONMENT="TEST_DIR=$TEST_DIR MODULE=$MODULE COVERAGE=$COVERAGE";
- IFS= ; export CIBW_BEFORE_BUILD="$(cat ci_scripts/travis/install.sh)";
- IFS= ; export CIBW_TEST_COMMAND="$(cat ci_scripts/travis/test.sh)";
- cibuildwheel --output-dir $WHEEL_FOLDER
after_success:
- bash ci_scripts/travis/success.sh