-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.travis.yml
More file actions
121 lines (104 loc) · 2.55 KB
/
Copy path.travis.yml
File metadata and controls
121 lines (104 loc) · 2.55 KB
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
sudo: false
cache:
pip: true
os:
- linux
- osx
dist: xenial
language: generic
env:
- TASK=sdist PYTHON_VERSION="2.7"
- TASK=sdist PYTHON_VERSION="3.5"
- TASK=sdist PYTHON_VERSION="3.6"
- TASK=sdist PYTHON_VERSION="3.7"
- TASK=bdist PYTHON_VERSION="2.7"
- TASK=bdist PYTHON_VERSION="3.5"
- TASK=bdist PYTHON_VERSION="3.6"
- TASK=bdist PYTHON_VERSION="3.7"
before_install:
- export BUILD_DIRECTORY="$TRAVIS_BUILD_DIR"
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then
export OS_NAME="macos";
if test -z "$COMPILER"; then
export COMPILER="clang";
fi
else
export OS_NAME="linux";
export COMPILER="gcc";
fi
install:
- source build_tools/travis/setup.sh
script:
- bash build_tools/travis/test.sh
jobs:
include:
- stage: test
os: osx
env:
COMPILER=gcc
PYTHON_VERSION="3.7"
- stage: deploy
if: tag IS present
os: osx
env:
TASK=bdist
PYTHON_VERSION="2.7"
script:
- build_tools/travis/deploy.sh
- stage: deploy
if: tag IS present
os: osx
env:
TASK=bdist
PYTHON_VERSION="3.5"
script:
- build_tools/travis/deploy.sh
- stage: deploy
if: tag IS present
os: osx
env:
TASK=bdist
PYTHON_VERSION="3.6"
script:
- build_tools/travis/deploy.sh
- stage: deploy
if: tag IS present
os: osx
env:
TASK=bdist
PYTHON_VERSION="3.7"
script:
- build_tools/travis/deploy.sh
- stage: deploy
if: tag IS present
sudo: required
services:
- docker
env:
DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
PLAT=manylinux1_x86_64
before_install: skip
install:
- docker pull $DOCKER_IMAGE
script:
- docker run --rm -e PLAT=$PLAT -e PYPI_USER=$PYPI_USER -e PYPI_PASS=$PYPI_PASS -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/build_tools/build_wheels.sh
- ls wheelhouse/
- stage: deploy
if: tag IS present
sudo: required
services:
- docker
env:
DOCKER_IMAGE=quay.io/pypa/manylinux2010_x86_64
PLAT=manylinux2010_x86_64
before_install: skip
install:
- docker pull $DOCKER_IMAGE
script:
- docker run --rm -e PLAT=$PLAT -e PYPI_USER=$PYPI_USER -e PYPI_PASS=$PYPI_PASS -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/build_tools/build_wheels.sh
- ls wheelhouse/
notifications:
slack:
rooms: $SLACK_TOKEN
on_success: change
on_failure: always