forked from EmuKit/emukit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
50 lines (50 loc) · 1.14 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
# turn off notifications until build is stable
notifications:
email: false
dist: xenial # required for Python >= 3.7
language: python
os: linux
python:
- '3.6'
- '3.7'
addons:
homebrew:
packages:
- pyenv
- openssl
- readline
update: true
before_install: |
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
# 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
fi
install:
- pip install --upgrade pip
- pip install -r requirements/requirements.txt
- pip install -r requirements/test_requirements.txt
- pip install -r requirements/integration_test_requirements.txt -q
# work around issues with GPy and GPyOpt setting matplotlib backend
- "echo 'backend: Agg' > matplotlibrc"
- pip install .
- pip freeze
script:
# - flake8
- python -m pytest
- pytest -c /dev/null integration_tests
after_success:
- codecov
jobs:
include:
- os: osx
language: generic
env: PYTHON=3.6.5
- os: osx
language: generic
env: PYTHON=3.7.2