This repository has been archived by the owner on Aug 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
78 lines (71 loc) · 1.96 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
language: generic
dist: xenial
services: docker
cache:
directories:
- $HOME/.ccache
- $HOME/.cache/pip
env:
global:
- REPO_DIR="pygeos"
- BUILD_COMMIT=0.10.1
- PLAT=x86_64
- UNICODE_WIDTH=32
- USE_CCACHE=1
matrix:
include:
- name: "Python 3.6 x86_64 linux"
os: linux
env:
- MB_PYTHON_VERSION=3.6
- NP_BUILD_DEP=numpy==1.13.3
- name: "Python 3.7 x86_64 linux"
os: linux
env:
- MB_PYTHON_VERSION=3.7
- NP_BUILD_DEP=numpy==1.14.5
- name: "Python 3.8 x86_64 linux"
os: linux
env:
- MB_PYTHON_VERSION=3.8
- NP_BUILD_DEP=numpy==1.17.3
- name: "Python 3.9 x86_64 linux"
os: linux
env:
- MB_PYTHON_VERSION=3.9
- NP_BUILD_DEP=numpy==1.19.5
- name: "Python 3.6 osx"
os: osx
env:
- MB_PYTHON_VERSION=3.6
- NP_BUILD_DEP=numpy==1.13.3
- name: "Python 3.7 osx"
os: osx
env:
- MB_PYTHON_VERSION=3.7
- NP_BUILD_DEP=numpy==1.14.5
- name: "Python 3.8 osx"
os: osx
env:
- MB_PYTHON_VERSION=3.8
- NP_BUILD_DEP=numpy==1.17.3
- name: "Python 3.9 osx"
os: osx
env:
- MB_PYTHON_VERSION=3.9
- NP_BUILD_DEP=numpy==1.19.5
before_install:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
- BUILD_DEPENDS="$NP_BUILD_DEP"
- TEST_DEPENDS="$NP_BUILD_DEP pytest"
- source multibuild/common_utils.sh
- source multibuild/travis_steps.sh
- before_install
install:
- clean_code $REPO_DIR $BUILD_COMMIT
- build_wheel $REPO_DIR $PLAT
script:
- install_run $PLAT
after_success:
- test $TRAVIS_BRANCH = "deploy-test" && pip install twine && twine upload --repository-url https://test.pypi.org/legacy/ -u __token__ --skip-existing --disable-progress-bar ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl || echo "Skipping artefact test upload"
- test $TRAVIS_BRANCH = "master" && pip install twine && twine upload -u __token__ --skip-existing --disable-progress-bar ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl || echo "Skipping artefact upload"