forked from wradlib/wradlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
95 lines (87 loc) · 2.71 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
# run on container-based infrastructure
sudo: false
language: python
env:
global:
- WRADLIB_BUILD_DIR=$TRAVIS_BUILD_DIR
matrix:
fast_finish: true
include:
- python: 3.6
env:
- WRADLIB_UNITTEST="true"
- PYTHON_VERSION="3.6"
- GDAL_VERSION="2"
- DEPLOY="true"
- python: 3.7
sudo: required
dist: xenial
services: xvfb
env:
- WRADLIB_UNITTEST="true"
- PYTHON_VERSION="3.7"
- GDAL_VERSION="2"
- python: 3.7
sudo: required
dist: xenial
services: xvfb
env:
- WRADLIB_UNITTEST="true"
- PYTHON_VERSION="3.7"
- GDAL_VERSION="3"
- python: 3.7
sudo: required
dist: xenial
services: xvfb
env:
- WRADLIB_NOTEBOOKTEST="true"
- PYTHON_VERSION="3.7"
- GDAL_VERSION="2"
allow_failures:
- python: 3.7
env:
- WRADLIB_NOTEBOOKTEST="true"
- PYTHON_VERSION="3.7"
- GDAL_VERSION="2"
- python: 3.7
env:
- WRADLIB_UNITTEST="true"
- PYTHON_VERSION="3.7"
- GDAL_VERSION="3"
cache:
directories:
- $HOME/condacache/pkgs
install:
# test PEP8 compliance first to speed up
- pip install flake8
- flake8 .
- deactivate
# install build environment
- source scripts/install.sh
script:
- if [ "${WRADLIB_UNITTEST}" == "true" ]; then
if [ "${PYTHON}" == "3.6" ]; then
xvfb-run scripts/run_tests.sh wradlib;
else
scripts/run_tests.sh wradlib;
fi;
else
scripts/run_tests.sh $WRADLIB_NOTEBOOKS;
fi;
after_success:
- codecov -f "$WRADLIB_BUILD_DIR/coverage.xml" -F wradlibtests
- scripts/trigger_readthedocs.sh
deploy:
# tagged
- provider: pypi
server: https://upload.pypi.org/legacy/
distributions: sdist
skip_cleanup: true
user: wradlib
password:
secure: rKiAS61oDiuV2uJvkP2aiXt8hb7boU2p35RWiTLS8b5pSo/BWysThOIf1jmz5GQIpI8uYU+5GajlgtGVq8GmOxprexDgwTfMFF2bsblfUuZwYM3R1tPQuo2poAZ1/m0jPCul60vJJ31B2wEzsneo4tvbM4a7mAoBMMA5auli5o3eVo4P8xnXziMbw/l53bnl+ZYv7qocbt9RIsrgckAdfjLkZy8gAgDxcYXGGybg6K8VN/twSZGMIJfOvjkONhOtRfsiUc8fEu2hF6+HjQfSC07jue4KDPzo3s9hrAS6+fB0v8MV4UsB710VsrqoPuIfhBRo+xj8tW7Y2MPzJq/6kPBrVoQwV7gLTxZ7IWy5y4/Si78rxhXZIKDzo2VS4tNq1wo6xfGXv8pbzal7TOljqzK+ekXJBsXgdVUiGisZJLHTnPr0rkjwY7qzW+mqPqnpLLTCoHYWQE9AlrEQI3jP1FejGB5iyv/A3kDhjaerFkXlu5TXfkE44EpoKp8uURCNdzNiFoACv/68w3BJmWI0IkQR+YWZEBQm0xySMj8zLd5qrhqX/0u2crEC2uUPEQnkwNF1X8fOz3KFozY68KYsvSmIqKPlJFWSpzXYzMzqFnpvSumgb+g8FK/UppmMpukeQXTVSMGHY9k0Hi6I/WoGgmlDMksRB4fMUG0nZXdOqyM=
on:
branch: master
tags: true
repo: wradlib/wradlib
condition: $TRAVIS_PYTHON_VERSION = "3.6"