-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (45 loc) · 1.62 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
51
52
53
# .travis.yml file based on:
# https://gist.github.com/dan-blanchard/7045057
language: python
python:
- 3.5
before_install:
# install git lfs and fetch test data
- if [ ! -f $HOME/download/git-lfs-linux-amd64-2.0.2.tar.gz ]; then
pushd $HOME/download;
wget https://github.com/github/git-lfs/releases/download/v2.0.2/git-lfs-linux-amd64-2.0.2.tar.gz;
popd;
fi
- tar xzf $HOME/download/git-lfs-linux-amd64-2.0.2.tar.gz
- (cd git-lfs-2.0.2 && PREFIX=$HOME/.local ./install.sh)
- export PATH=$HOME/.local/bin:$PATH
- git lfs pull
install:
# Setup anaconda. See http://conda.pydata.org/docs/travis.html
# We do this conditionally because it saves us some downloading if the
# version is the same.
- 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"
- export BBN_MEAS_FILE="$PWD/tests/test_measure.yml"
- echo "Measure file at $BBN_MEAS_FILE"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# Create conda environment with dependencies
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy bokeh h5py jupyter scipy networkx future
- source activate test-environment
- conda install -c ecpy atom;
- pip install watchdog coveralls
script:
- coverage run -m unittest discover
after_script:
- coveralls
# necessary to run on new container-based infrastructure
sudo: false
cache:
directories:
- $HOME/download
- $HOME/.cache/pip