-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
72 lines (63 loc) · 2.29 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
# Config file for automatic testing at travis-ci.org
os: linux
dist: bionic
language: python
cache:
apt: true
directories:
- "$HOME/.cache/pip"
- "$HOME/download"
env:
global:
- TEST_DIR=/tmp/test_dir/
- PKG_NAME=sklearn-xarray
- MODULE=sklearn_xarray
- USER=phausamann
jobs:
include:
- python: 3.6
env: COVERAGE="true" BLACK="true" FLAKE8="true" PAGES="true" PYPI="true"
- python: 3.7
- python: 3.8
- env: CONDA_BLD_PATH=~/conda-bld
install:
- source build_tools/travis/install_conda.sh
- conda install -y conda-build anaconda-client
- conda config --set anaconda_upload no
script:
- conda build build_tools/conda
after_success:
- chmod +x build_tools/travis/conda_upload.sh
install:
- source build_tools/travis/install_conda.sh
- source build_tools/travis/install.sh
script:
- bash build_tools/travis/test.sh
- bash build_tools/travis/make_docs.sh
after_success:
- bash build_tools/travis/success.sh
deploy:
- provider: pages
local-dir: docs/_build/html
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
on:
condition: "$PAGES = true"
branch: master
- provider: pypi
skip_cleanup: true
user: $USER
password:
secure: cRtfmsupJcyrZ1EU+NJ1eng0Abn9LeDVHLf1xZ1/1sg3qq6PwJwxNFJHTMin0sIJXERFAGG3btRnFqiwYsrxF7OdWObDYZN3G9riKKhS2Z5bSanWyrQk4XF/s9haONHKv2falsZ6nnux9GDMod+ojPzedNGagISLsLixHMRZmYFnUAJtdzDOm6PoNTui0+0C3bHoAIPu+FZJ1rPV1xmGM+4YGLg/j3yFt6SIY0XYY9d2torXSwD1E0+8V/kPxTcyNCQVE9LlFP3v9xLt2wYq7ehjGbetehSZyJxjchjtgABBMBkGTKqBwb3pgagaRmC9KVatpRVVVSLJRZAbFOmfK3QkZzrVzDVwOEloVhhUxUAm3rZDbZHmvHO0maS5VkpDAb3lE1edLziLiD0qqLBSuy5Tru+uELa6IO6gO8r/dA8usnKAcNWHIjrpLd3W7P+btjrmrSx8ReYs9PitKFiCLgleoAJGZFoSN0sOIAimCzvIsCvJyjlbHOvDyb+ziqvxu66yz/hBmupGibIT2529pyVW713gBOyrIvsLqzX3uDw6aYMTSi4aYp5+sfkCA5RE8Fc6PEPnqj6LbWjBF6bgelj3wUc9J4ZniuSWFMDKmBhk/p/j9CRg7RYQ5g+lK5E0oJma0vThqx8MKDivVk4oOMD8txcA0g1DJn8oE6i4ptc=
on:
condition: "$PYPI = true"
branch: master
tags: true
- provider: script
skip_cleanup: true
script: build_tools/travis/conda_upload.sh
on:
condition: "$CONDA_BLD_PATH = $HOME/conda-bld"
branch: master
tags: true