forked from GeoStat-Framework/PyKrige
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
107 lines (95 loc) · 2.9 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
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 scipy==1.3.2 cython==0.29.14 setuptools"
- CIBW_TEST_REQUIRES="pytest scikit-learn gstools"
- 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
install: python3 -m pip install cibuildwheel==1.3.0
script: 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:
jobs:
include:
- name: "black check"
services: docker
install: python3 -m pip install black
script: python3 -m black --check pykrige/ examples/ tests/
after_success: echo "all files formatted correctly"
after_failure: echo "some files not formatted correctly"
- name: "sdist and coverage"
services: docker
install:
- python3 -m pip install -r requirements_setup.txt
- python3 -m pip install -r requirements_test.txt
- python3 -m pip install -r requirements.txt
script:
- python3 setup.py sdist -d dist
- python3 setup.py build_ext --inplace
- python3 -m pytest --cov pykrige --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-*"