forked from automl/auto-sklearn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (72 loc) · 2.15 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
language: python
sudo: false
dist: xenial
env:
global:
- OPENBLAS_NUM_THREADS=1
- OMP_NUM_THREADS=1
- MKL_NUM_THREADS=1
# Directory where tests are run from
- TEST_DIR=/tmp/test_dir/
- EXAMP_DIR=/tmp/examp_dir/
- MODULE=autosklearn
- MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"
matrix:
allow_failures:
- os: osx
include:
- os: linux
env: DISTRIB="conda" DOCPUSH="true" PYTHON="3.7" SKIP_TESTS="true"
- os: linux
env: DISTRIB="conda" PYTHON="3.8" RUN_FLAKE8="true" SKIP_TESTS="true"
- os: linux
env: DISTRIB="conda" PYTHON="3.8" RUN_MYPY="true" SKIP_TESTS="true"
- os: linux
env: DISTRIB="conda" COVERAGE="true" PYTHON="3.6"
- os: linux
env: DISTRIB="conda" TEST_DIST="true" PYTHON="3.7"
- os: linux
env: DISTRIB="conda" PYTHON="3.8"
- os: linux
python: 3.6
env: DISTRIB="ubuntu"
- os: linux
python: 3.7
env: DISTRIB="ubuntu"
- os: linux
python: 3.8
env: DISTRIB="ubuntu"
# Temporarily disabling OSX builds because thy take too long
# Set language to generic to not break travis-ci
# https://github.com/travis-ci/travis-ci/issues/2312#issuecomment-195620855
# so far, this issue is still open and there is no good solution
# python will then be installed by anaconda
#- os: osx
# sudo: required
# language: generic
# env: DISTRIB="conda" PYTHON_VERSION="3.5" MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh"
cache:
# We use three different cache directory
# to work around a Travis bug with multi-platform cache
directories:
- $HOME/.cache/pip
- $HOME/download
pip: true
git:
depth: 5
before_install:
- source ci_scripts/install_env.sh
install:
- source ci_scripts/install.sh
script: bash ci_scripts/test.sh
after_success: source ci_scripts/success.sh && source ci_scripts/create_doc.sh $TRAVIS_BRANCH "doc_result"
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # set in the settings page of my repository
keep-history: true
committer-from-gh: true
on:
all_branches: true
condition: $doc_result = "success"
local_dir: doc/$TRAVIS_BRANCH