forked from BBN-Q/Auspex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (46 loc) · 1.79 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
54
# .travis.yml file based on:
# https://gist.github.com/dan-blanchard/7045057
language: python
python:
- "3.6"
env:
- CONDA_TYPE=miniconda CONDA_VERS=https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh UPDATE_CONDA="true"
- CONDA_TYPE=miniconda CONDA_VERS=https://repo.continuum.io/miniconda/Miniconda3-4.5.11-Linux-x86_64.sh UPDATE_CONDA=""
addons:
apt:
packages:
- libusb-1.0-0-dev
install:
# Setup anaconda. See http://conda.pydata.org/docs/travis.html
- echo "Using $CONDA_TYPE"
- wget $CONDA_VERS -O miniconda.sh
- bash miniconda.sh -h | sed '4q;d'
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
# - export BBN_DB="$PWD/bbn.sqlite"
# - echo "Database file at $BBN_DB"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- if [ $UPDATE_CONDA ]; then conda update -q conda; fi
# 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 scipy h5py sphinx matplotlib pandas networkx cffi jupyter psutil sqlalchemy ipykernel ipywidgets
- source activate test-environment
- export GIT_LFS_SKIP_SMUDGE=1
- pip install git+https://github.com/BBN-Q/bbndb.git
- pip install git+https://github.com/BBN-Q/QGL.git@develop
- pip install git+https://github.com/spatialaudio/nbsphinx.git@master
- pip install pyvisa coveralls scikit-learn pyusb future python-usbtmc setproctitle progress serial
- export GIT_LFS_SKIP_SMUDGE=0
- export PYTHONPATH=$PYTHONPATH:$PWD/src
script:
- coverage run -m unittest discover -v test
after_script:
- coveralls
# necessary to run on new container-based infrastructure
sudo: false
cache:
directories:
- $HOME/download
- $HOME/.cache/pip