forked from LCAV/pyroomacoustics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
98 lines (92 loc) · 5.02 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
language: generic
os:
- osx
- linux
env:
- PYTHON_VERSION=2.7
- PYTHON_VERSION=3.5
- PYTHON_VERSION=3.6
- PYTHON_VERSION=3.7
notifications:
slack: echology:avPAhIlErQnf7XSUGcSB5awZ
email: false
# Install packages
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get update;
fi
# We do this conditionally because it saves us some downloading if the
# version is the same.
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export MINICONDA_OS="MacOSX";
else
export MINICONDA_OS="Linux";
fi
- if [[ "$PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-${MINICONDA_OS}-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-${MINICONDA_OS}-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=$PYTHON_VERSION
- source activate test_env
# Install the dependencies
- conda install --yes pip numpy scipy>=0.18.0 matplotlib nose
- pip install -r requirements.txt
- python setup.py install
script:
- python setup.py build_ext --inplace
- nosetests
# Deploy to pypi (or test)
deploy:
# pypi (source)
- provider: pypi
on:
branch: pypi-release
tags: true
distributions: "sdist"
skip_existing: true
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 (source)
- provider: pypi
server: https://test.pypi.org/legacy/
on:
branch: pypi-test
tags: false
distributions: "sdist"
skip_existing: true
user: "fakufaku"
password:
secure: "bshTb4GGhuiNtv6lPABosLl2DbBXAbnwC7vDeD2Xrf8Apkzn8ECfMzrR3iGik52bjyJ6Nh3ZZQxh85cLhR6nyMo0v4DDc55dc5x6YqYxiDZkHnCatxGoa+1ntJ/trEnI79Sc8e8/a9ZWp2+Bxv7Hg62KikCimhxHmSzejG+XgL+g78djG/j9Aw+JTEmrZYNHGcI3kyuPfQ1pOet65ilIT3Lf/kNnzAiio4GF1LUET5tsnVJhUNnJ+5IxTcfRq9vZPLY92ehndi5ORUw8mJUrQkYGxmFnlDnuhlvSo3SaWWr+qeJB6dAYgG6DM7zbsqO1EPhZYFsw608XiClSE37KPtooSKd7jOIClhNM/b+R2mtDbBgPyPQLiZ+8w9da4NAnIpN5If1XlzMfTXxcbYh2u8e2gmACBPxn462bJZetWI2dkJvG6AhI0EygaMkJ1648SadrFI6ymUYPer2rHfR5U+izYcRRJzeLwUIjt+Mc5wuRS9c6oaJhN00ICsna0tt7+X6wn9uWD5FEnDMf0uvkT1P/xBaRHeCdt94x690JcyaqRPavxF5W58w/pmtSw9zET2wvL4XsjQRBS3vOpU1Pk/DVlOfDySYPcLJcHZfwXmgyFNiXtbAFZ6aRTbU/t/+4YwufVuh35e6qTl+pRLuSvLL5oMnzRk6fahGaWDQIt/U="
# pypi (wheel)
- provider: pypi
on:
branch: pypi-release
tags: true
condition: $TRAVIS_OS_NAME = "osx"
distributions: "bdist_wheel"
skip_existing: true
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 (wheel)
- provider: pypi
server: https://test.pypi.org/legacy/
on:
branch: pypi-test
tags: false
condition: $TRAVIS_OS_NAME = "osx"
distributions: "bdist_wheel"
skip_existing: true
user: "fakufaku"
password:
secure: "bshTb4GGhuiNtv6lPABosLl2DbBXAbnwC7vDeD2Xrf8Apkzn8ECfMzrR3iGik52bjyJ6Nh3ZZQxh85cLhR6nyMo0v4DDc55dc5x6YqYxiDZkHnCatxGoa+1ntJ/trEnI79Sc8e8/a9ZWp2+Bxv7Hg62KikCimhxHmSzejG+XgL+g78djG/j9Aw+JTEmrZYNHGcI3kyuPfQ1pOet65ilIT3Lf/kNnzAiio4GF1LUET5tsnVJhUNnJ+5IxTcfRq9vZPLY92ehndi5ORUw8mJUrQkYGxmFnlDnuhlvSo3SaWWr+qeJB6dAYgG6DM7zbsqO1EPhZYFsw608XiClSE37KPtooSKd7jOIClhNM/b+R2mtDbBgPyPQLiZ+8w9da4NAnIpN5If1XlzMfTXxcbYh2u8e2gmACBPxn462bJZetWI2dkJvG6AhI0EygaMkJ1648SadrFI6ymUYPer2rHfR5U+izYcRRJzeLwUIjt+Mc5wuRS9c6oaJhN00ICsna0tt7+X6wn9uWD5FEnDMf0uvkT1P/xBaRHeCdt94x690JcyaqRPavxF5W58w/pmtSw9zET2wvL4XsjQRBS3vOpU1Pk/DVlOfDySYPcLJcHZfwXmgyFNiXtbAFZ6aRTbU/t/+4YwufVuh35e6qTl+pRLuSvLL5oMnzRk6fahGaWDQIt/U="