-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
50 lines (43 loc) · 1.37 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
language: python
sudo: required
dist: trusty
cache: pip
services:
- mongodb
matrix:
include:
- python: 2.7
- python: 3.4
- python: 3.5
- python: 3.6
install:
# setup conda
# Used from https://conda.io/docs/user-guide/tasks/use-conda-with-travis-ci.html
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
-O miniconda.sh; else wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
-O miniconda.sh; fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
# test-environment
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy pandas pytest
h5py scipy
- source activate test-environment
- python --version
- pip --version
# install hyperopt from source
# this commit
# https://github.com/hyperopt/hyperopt/commit/2442bb24aca594bd566044fce276afbd377e0c03
# solves this issue:
# https://github.com/hyperopt/hyperopt/issues/325
- git clone https://github.com/hyperopt/hyperopt.git
- pip install hyperopt/
# install the repository, use tensorflow as backend by default
- pip install tensorflow
- pip install '.[develop]'
script:
# travis_wait 30 PYTHONPATH=$PWD:$PYTHONPATH py.test tests/
- PYTHONPATH=$PWD:$PYTHONPATH py.test tests/