-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
36 lines (27 loc) · 996 Bytes
/
.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
# Config file for automatic testing at travis-ci.org
# Inspired by https://github.com/soft-matter/trackpy/blob/master/.travis.yml
# These tests only pertain to the Python code in the pcsf subdirectory
language: python
cache: pip
python:
- "2.7"
notifications:
email: false
before_install:
# install conda to help with numpy/scipy system dependencies
- wget https://repo.continuum.io/miniconda/Miniconda2-4.0.5-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- export CONDA_PREFIX=/home/travis/mc
- ./miniconda.sh -b -p "$CONDA_PREFIX"
- export PATH="$CONDA_PREFIX/bin":$PATH
- conda install -y anaconda-client
install:
# setup python environment and required packages
- conda create -n pcsf -y python=$TRAVIS_PYTHON_VERSION pytest numpy=1.13 pandas=0.20 networkx=1.11
- source activate pcsf
# log stat for debugging
- echo $PATH
- echo $CONDA_PREFIX
- which python
# there is no package to install, only a collection of scripts
script: py.test