forked from GeoStat-Framework/GSTools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
100 lines (90 loc) · 2.63 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
language: python
python: 3.8
# setuptools-scm needs all tags in order to obtain a proper version
git:
depth: false
env:
global:
- TWINE_USERNAME=geostatframework
- CIBW_BEFORE_BUILD="pip install numpy==1.17.3 cython==0.29.14 setuptools"
- CIBW_TEST_REQUIRES=pytest
- CIBW_TEST_COMMAND="pytest -v {project}/tests"
before_install:
- |
if [[ "$TRAVIS_OS_NAME" = windows ]]; then
choco install python --version 3.8.0
export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
# make sure it's on PATH as 'python3'
ln -s /c/Python38/python.exe /c/Python38/python3.exe
fi
script:
- python3 -m pip install cibuildwheel==1.3.0
- python3 -m cibuildwheel --output-dir dist
after_success:
- |
if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then
python3 -m pip install twine
python3 -m twine upload --verbose --skip-existing --repository-url https://test.pypi.org/legacy/ dist/*
if [[ $TRAVIS_TAG ]]; then python3 -m twine upload --verbose --skip-existing dist/*; fi
fi
notifications:
email:
recipients:
- info@geostat-framework.org
jobs:
include:
- name: "sdist and coverage"
services: docker
env: OMP_NUM_THREADS=4
script:
- python3 -m pip install -U setuptools pytest-cov coveralls
- python3 -m pip install -U numpy==1.17.3 cython==0.29.14
- python3 -m pip install -r requirements.txt
- python3 setup.py sdist -d dist
- python3 setup.py --openmp build_ext --inplace
- python3 -m pytest --cov gstools --cov-report term-missing -v tests/
- python3 -m coveralls
- name: "Linux py35"
services: docker
env: CIBW_BUILD="cp35-*"
- name: "Linux py36"
services: docker
env: CIBW_BUILD="cp36-*"
- name: "Linux py37"
services: docker
env: CIBW_BUILD="cp37-*"
- name: "Linux py38"
services: docker
env: CIBW_BUILD="cp38-*"
- name: "MacOS py35"
os: osx
language: shell
env: CIBW_BUILD="cp35-*"
- name: "MacOS py36"
os: osx
language: shell
env: CIBW_BUILD="cp36-*"
- name: "MacOS py37"
os: osx
language: shell
env: CIBW_BUILD="cp37-*"
- name: "MacOS py38"
os: osx
language: shell
env: CIBW_BUILD="cp38-*"
- name: "Win py35"
os: windows
language: shell
env: CIBW_BUILD="cp35-*"
- name: "Win py36"
os: windows
language: shell
env: CIBW_BUILD="cp36-*"
- name: "Win py37"
os: windows
language: shell
env: CIBW_BUILD="cp37-*"
- name: "Win py38"
os: windows
language: shell
env: CIBW_BUILD="cp38-*"