-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
53 lines (42 loc) · 1.09 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
sudo: false
language: python
cache:
directories:
- $HOME/env
- $HOME/data
notifications:
email: false
python:
- "2.7"
- "3.4"
- "3.5"
addons:
apt:
packages:
- sox
env:
- MEDLEYDB_PATH=$HOME/data/MedleyDB_sample VAMP_PATH=$HOME/data/vamp VAMPY_EXTPATH=$VAMP_PATH
before_install:
- bash .travis_download_mdb.sh
- bash .travis_dependencies.sh
- mkdir -p $VAMP_PATH
- cp massage/resources/pyin/* ${VAMP_PATH}/
- export PATH="$HOME/env/miniconda$TRAVIS_PYTHON_VERSION/bin:$PATH";
- hash -r
- source activate test-environment
# command to install dependencies
install:
- pip install coveralls
- conda install -c conda-forge librosa
- pip install git+https://github.com/marl/medleydb.git
- pip install -e .
# uninstall needed for mocking to work in unittests with python 3.
- pip uninstall --yes pyfluidsynth
- pip install mock
# command to run tests
script: nosetests --with-coverage --cover-erase --cover-package=massage -v -w tests/
after_success:
- coveralls
- pip uninstall -y massage
after_failure:
- pip uninstall -y massage