forked from LCAV/pyroomacoustics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (60 loc) · 3.03 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
55
56
57
58
59
60
61
62
63
64
65
66
language: python
python:
- 2.7
- 3.5
notifications:
slack: echology:avPAhIlErQnf7XSUGcSB5awZ
email: false
# Install packages
install:
- sudo apt-get update
# We do this conditionally because it saves us some downloading if the
# version is the same.
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- 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
# We need to setup a new environment
- conda create -n test_env python=$TRAVIS_PYTHON_VERSION
- source activate test_env
# Install the dependencies
- conda install --yes pip numpy scipy matplotlib nose
- pip install -r requirements.txt
- python setup.py install
# Run test twice, without C lib, and with C lib
script:
- nosetests
- python setup.py build_ext --inplace
- python pyroomacoustics/c_package/tests/check_build.py
- nosetests
# Deploy to pypi (or test)
deploy:
# pypi
- provider: pypi
on:
branch: pypi-release
tags: true
condition: $TRAVIS_PYTHON_VERSION = "2.7"
distributions: "sdist"
user: "fakufaku"
password:
secure: "DT89f2IjQQ23UHa9CTKcxSDGYzk6HD4gBh4s41Qd34VyIuUvVrYxXNq0dWc+ciSVG1HjzpVEqUZj1+zD9yoDciczvBGE5qXXGhW8XjMQVzA8wzyO9H4ybkKwFlKgK6GM0K7vs+E+E7/T06u4ktiB+Rvu3nzFOLnl8fEMAlXWJH067dK+ltX4iVtHs06Q8yRpKFrVCOpyJuMP4FIqK4YA/azvH0TEG/P5DM6omATZUuoNGgXdE+oD2pkguhcejOwvSSmk7m2M1BPuesoeF4uYI1jEWrev++7zXtvwT0f2FKOXd21SVe3dzZv478C2ttABFFIDXRlYPWgSuwE311hUqlDrkmWgvJ1rdj2A5ajTew00EJBRjfrdRNiHzYJ7p51HLD2oGM+44EPqXCx8+OmD9TmdPGjwP1OGxFsJ0ADWcFQWeaubOjmBPv8P7DLORg5sHqt3IHmlL/F6JOmLkOLJ9nqi1hcHMrJpoWO83RqyZ/2HhVxmjrBMmVqXjmH5QJx1Kj2G1tZov55XHXO+XOfiFpJXtLQggZsOsipQ9ZuPG/WzWgcfLoMEpQCweZDw/ynSnG1JeEYK6csEEWIGfcnkk0zu1wcxPX7SQTEKVqg3uC1IG6lSQicCsBbDc83iEP3B908VLHv1Cav3VIqUh55QsyDjaGs5XJpp7sOnCx2xiB8="
# pypi test
- provider: pypi
server: https://testpypi.python.org/pypi
on:
branch: pypi-test
tags: false
condition: $TRAVIS_PYTHON_VERSION = "2.7"
distributions: "sdist"
user: "fakufaku"
password:
secure: "dIgbQ5hZ4aH0RzriwFT5A6uZa0K1462C6wtSY7coS+ztQPdrRCKjI/bTKV5j++CEBj6Lz5oUOxsmc86PF7I1IVtbVcT2jeR+nFJt87XCg8iQ1CYRQ24NXw/erLniDYl3HE6F0HQvKS7UDdjv7csiKgwfpEZEpYOZo+kNyANgS0EeUlIGMzYEIhBww/nfAefkDoNGOCEUJ5kTd7JWYhdg+PfFhIjDwNHYQ7YEufoFyrx10bl4Ka/uGAlAnhyMc3Q4tLN+oCx08gmo9/lvc9Vio6fzmVDzX5Ay5KA9LjbOFz0xr1s1zrZXP3ZILvrRElQClWTq8RQFQtoUMXpeszLxKdVHo8pPLZdZnkbMX0xD+3QRaxu6SiooDqFxRTUvlVpKQDJDLCDyq74RsrLa+qBWRJSQzlRqHUzsgpNHMS2w3x7M4zjjvr5oYExwnrBfC9W+A9ymcnyvWJYuNkTY40k4cx+8cDBdog9/ESliVsS5jkrSC1II1iqk6R6GSKHieGoyXDgtV2G1q+2wRZSVl6WMWomP66rIHNAmxvMQCWPfG1Bt4xT+HMPftdt04yfHJY8vFpU9PZy7U23h9fFw/goFQI94J0bessOudjGTOgdej3GZQT/stIKkHVZr5lX3+ZPjRg8kO2evXD9IJIIze64+qy/l89RAhUry7cpBEVhC5wk="