-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
50 lines (40 loc) · 1.18 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
sudo: false
addons:
apt:
packages:
- ffmpeg
cache:
directories:
- $HOME/env
language: python
python:
- "2.7"
- "3.5"
before_install:
- bash ./ci/travis_dependencies.sh
- export PATH="$HOME/env/miniconda$TRAVIS_PYTHON_VERSION/bin:$PATH";
- hash -r
- source activate test-environment
install:
# install your own package into the environment
# pip install -e rather than setup.py, so that coverage can find the source
- pip install -e ./
# Download wav files as travis does not support git lfs
- bash ./ci/download_data.sh
script:
- python --version
- nosetests --with-coverage --cover-erase --cover-package=aupyom -v -w tests/
deploy:
provider: pypi
user: pierre-rouanet
# PYPI_PASSWD encrypted below > travis encrypt PYPI_PASSWD=XXXXXX --add
password:
secure: ovWnNtOxp9SzfayLkI/NbeQld76FatyUm7Bdj6d9XWxokQpj130pf5uBwrUs32TCDmWJxfIC/8Jn7IA4kMWLzH/hN+M6AIc290EiSmLNaNU4HOh6hdx6qERHLSoPFVHgI1xPTEUouNWXkP3LR8nFja/iK1ai4ecGUBoIrtG0TW4=
distributions: "sdist bdist_wheel"
on:
tags: true
after_success:
- coveralls
- pip uninstall -y aupyom
after_failure:
- pip uninstall -y aupyom