forked from automl/HPOlib1.5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (34 loc) · 1.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
language: python
python:
- "3.5"
- "3.6"
os: linux
cache:
directories:
- $HOME/.cache/pip
- $HOME/.hpolib/
pip: true
sudo: false
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- if [[ `which conda` ]]; then echo 'Conda installation successful'; else exit 1; fi
- conda update --yes conda
- conda create -n testenv --yes python=$TRAVIS_PYTHON_VERSION pip wheel nose gxx_linux-64 gcc_linux-64 swig gfortran_linux-64
- source activate testenv
install:
- pip install coverage pep8 codecov
# Temporarily pin the numpy version for travis-ci
- pip install "numpy<1.15"
# Inverse grep allows comments in requirements file
- cat requirements.txt | grep -v '#' | xargs -n 1 -L 1 pip install
- cat optional-requirements.txt | grep -v '#' | xargs -n 1 -L 1 pip install
- python setup.py install
# command to run tests, e.g. python setup.py test
script:
- nosetests -sv --with-coverage --cover-package=hpolib
after_success:
- codecov