-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
48 lines (35 loc) · 1.38 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
sudo: required
language: python
git:
depth: 3
quiet: true
python:
- '3.6'
before_install:
# Here we just install Miniconda, which you shouldn't have to change.
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
- conda update --yes conda
install:
# We just set up a conda environment with the right Python version. This
# should not need changing.
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
# Below, include the dependencies you want to install with conda, optionally
# specifying versions used in the matrix above. If you split this into
# multiple conda install commands, you should always include numpy=$NUMPY as
# the first package to install (for every conda install command) otherwise
# numpy may be automatically upgraded.
- conda install --yes gcc swig libgcc=4.8.5
- export PATH=/home/travis/miniconda3/envs/test/bin:$PATH
- conda install --yes numpy pandas scikit-learn
# You can also install some dependencies with pip if not available in conda
# - pip install ...
# if some package depends on numpy, Numpy should be installed with conda.
- pip install -U pip
- pip install codecov
- pip install -r requirements.txt
script:
- python examples/test_simple_study.py