forked from sktime/sktime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
110 lines (92 loc) · 2.93 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
108
109
110
# Travis is a continuous integration service to build, test and deploy the package
# adapted from https://github.com/scikit-learn/scikit-learn/blob/master/.travis.yml
# use travis only on the following branches for building
branches:
only:
- master
- dev
- /^v[0-9]+\.[0-9]+\.[0-9]+/ # allow builds on tags
language: shell # 'language: python' is an error on Travis CI with macOS
cache:
directories:
- $HOME/.cache/pip
- $HOME/.ccache
dist: xenial # Ubuntu 16.04
env:
global:
- DEPLOY_BRANCH="master" # branch on which to deploy build artifacts and website
- DEPLOY_JOB_NAME="osx-py37" # job on which to deploy website
- OMP_NUM_THREADS=4
- OPENBLAS_NUM_THREADS=4
- TEST_DIR=/tmp/sktime # Directory where tests are run from
- REQUIREMENTS=build_tools/requirements.txt
- COVERAGE=true
# platforms and package environments to test
jobs:
include:
- name: "osx-py36"
os: osx
env:
- PYTHON_VERSION=3.6
- MINICONDA_VERSION=Miniconda3-latest-MacOSX-x86_64.sh
- name: "osx-py37"
os: osx
env:
- PYTHON_VERSION=3.7
- MINICONDA_VERSION=Miniconda3-latest-MacOSX-x86_64.sh
- name: "osx-py38"
os: osx
env:
- PYTHON_VERSION=3.8
# Check available miniconda version: https://repo.anaconda.com/miniconda/
- MINICONDA_VERSION=Miniconda3-py38_4.8.2-MacOSX-x86_64.sh
addons:
# travis recommends to specify any additional necessary packages here,
# rather than manually installing them in the install script
homebrew:
packages:
- ccache
- libomp
- jq
- pandoc
update: true
install:
# build and install sktime
- source build_tools/travis/install.sh
script:
# run unit tests
- bash build_tools/travis/test_script.sh
after_success:
# generate docs
- bash build_tools/travis/after_success.sh
before_deploy:
- cd $TRAVIS_BUILD_DIR
deploy:
# Docs are no longer deployed via travis but now instead via readthedocs
# # deploy website on master branch
# - provider: pages
# skip_cleanup: true # skip clean up which would delete build artifacts
# local_dir: "./docs/_build/html"
# github_token: $GITHUB_TOKEN # Generated in Github settings page of your repo, set in travis settings
# keep_history: false
# fqdn: sktime.org # set custom domain
# on:
# branch: $DEPLOY_BRANCH # deploy only on master
# condition: $TRAVIS_JOB_NAME = $DEPLOY_JOB_NAME # deploy only on macOS build
# # release is deployed only on tagged commits on master
# - provider: releases
# skip_cleanup: true
# api_key: $GITHUB_TOKEN
# draft: true
# file_glob: true # enable wildcards in file
# file: dist/* # files to upload
# on:
# tags: true # deploy only on tags
# deploy to pypi on tagged commits on master
- provider: pypi
skip_cleanup: true
username: "__token__"
password: $PYPI_PASSWORD
skip_existing: true
on:
tags: true