-
Notifications
You must be signed in to change notification settings - Fork 63
/
.travis.yml
79 lines (79 loc) · 2.85 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
language: python
os: linux
python:
- '3.4'
- '3.5'
sudo: required
dist: xenial
before_install: |
cd xfer-ml
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
# Get latest version of brew
brew update
# Recommended for pyenv
brew outdated openssl || brew upgrade openssl
brew outdated readline || brew upgrade readline
# Update pyenv
brew outdated pyenv || brew upgrade pyenv
# Install specified Python version
pyenv install $PYTHON
# Set environment variables
export PYENV_VERSION=$PYTHON
export PATH="/Users/travis/.pyenv/shims:${PATH}"
# Confirm versions
python --version
pip -V
pip install --upgrade pip
if [ $PYTHON == 3.4.4 ]; then
# GPy requires numpy during setup for Python versions less than 3.5
pip install numpy
fi
fi
install:
- pip install -r requirements.txt
- pip install -r test_requirements.txt
# work around issues with GPy setting matplotlib backend
- "echo 'backend: Agg' > matplotlibrc"
- pip freeze
script:
- flake8
- pytest --durations=0 --cov=./ --integration
after_success:
- codecov
jobs:
include:
- os: osx
language: generic
python: '3.6'
env: PYTHON=3.6.6
- os: linux
python: '3.6'
if: branch != master
- stage: notebooks
python: '3.6'
script:
- sudo apt-get install graphviz
- pip install -r docs/demos/requirements.txt
- travis_wait 40 pytest --durations=0 --notebook tests/notebook/test_notebooks.py
- script:
- sudo apt-get install graphviz
- pip install -r docs/demos/requirements.txt
- travis_wait 40 pytest --durations=0 --notebook_hpo tests/notebook/test_notebooks.py
python: '3.6'
name: "HPO notebook"
- script:
- sudo apt-get install graphviz
- pip install -r docs/demos/requirements.txt
- travis_wait 40 pytest --durations=0 --notebook_gluon tests/notebook/test_notebooks.py
python: '3.6'
name: "Gluon notebooks"
- stage: release
if: branch = master
python: '3.6' # Official supported Python dist.
deploy:
provider: pypi
user: jmas
password:
secure: dTE1XktLfnIWaQ1jnwNX0jtFf9qlkS2KekXQwqRB5x6zO3ou8FkOJIrp01WbDycDVyWAaIHGgZNj+sNlqhVnVKIgRj/fzIJ18Ur4GCmyhoJ9iB4GOPh9clBVBIkC6jSNAaQJlEzzHhx81RncKjhN2HaTpt7Xev89NrdBl0j1enyKPtYM7LrZGymlbdMBHpDTxbNe2CHkw+R+sgnBxtg1UttjMP36zuAQzNhqd5hT3fIuLyI3XWsNEL6/QL/oGN7IvBtm2a7cYsZvCiMDL3pgpKkirUOZGNgWjEGv+OipRavgal+As7J2WAGj0F2X4tVTBAzaf/hG8aQV3OXacMBrQJVUldpqsqpfnQB1gUxEOpk3/rcHMZUxG6uQbBFCrgfdFVUs6N/IDe6humkqiFpouXc+h5hhPcwvguOWJcdgHmlluEO/SnWaP41hDIwDw4zNv/EavG0ZI1645QXuSrLDOv1mgX4XEBvxprILzPhYhz3Za+Lw4v4UVIari3kE/ZQf5OYqhECj3Fou5/Rl65IOm0vOpp7JfVmJHni+EPVJbBRv4nQQ+GHl8CEFT1v+SejgUXfB3hMxOXYeEHPGbzCbgFqOnmLBPrxk/pPIwd4SLzGQf9GALkbJNASQQPjej3IBxhVHEhr+w9t8ffz0FtiLd28OoEa7IZayjmuLk2Q9WvM=
on:
tags: true