-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
29 lines (29 loc) · 1021 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
language: python
sudo: false
python:
- "2.7"
install:
- wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- 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
# Useful for debugging any issues with conda
- conda info -a
# setup networker in conda environment
- conda create -n networker python=2.7
# setup coverage tools
- conda install --yes -n networker coverage
- conda install --yes -n networker -c conda-forge python-coveralls
before_script:
# cache the lib dir
# - ldconfig "$HOME/miniconda/envs/networker/lib"
- source activate networker
- conda install --yes -c conda-forge --file requirements.txt
- conda install --yes -c conda-forge -c sel networkplanner-metrics
# numba jit messed up tests
# - find -name '*.py' | xargs sed -i 's/@jit/# @jit/'
script:
- nosetests --with-coverage
after_success: coveralls