forked from Devnex/PyNLO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (39 loc) · 2.06 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
language: python
matrix:
include:
# "Recommended" environments: More recent versions, for Py2 and Py3.
- python: "2.7"
env: DEPS="libgfortran=1.0 numpy=1.9 scipy=0.17 matplotlib=1.4 pillow<3 pandas=0.16 scikit-image=0.11 pyyaml numba=0.20 pytables pyfftw"
install:
# See:
# https://groups.google.com/a/continuum.io/forum/#!topic/conda/RSFENqovnro
# - conda update --yes --no-deps conda
# OK, this used to *fix* the build, but now it *breaks* the build.
# If you're reading this, good luck out there. I'm not sure what to tell you.
- conda update --yes conda
- conda config --add channels soft-matter
- conda create -n testenv --yes $DEPS pip nose setuptools python=$TRAVIS_PYTHON_VERSION
- source activate testenv
# for debugging...
- echo $PATH
- which python
- conda info
- conda list
- python setup.py install
- echo $PATH
- ls -lh
before_install:
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-3.5.5-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.5.5-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- ./miniconda.sh -b -p /home/travis/mc
- export PATH=/home/travis/mc/bin:$PATH
script:
- python -m unittest discover src -v "*test.py"
deploy:
provider: pypi
user: "ycasg"
password:
secure: "uzthn1H26f3qbrPUKQo+xRqz1BUesgMKGN0lDjPudLez5RSbAwwZRIBdcoXVg4imC5NMn2VY/DnmLE5YhfqQlZUQMjwAnU8ZwEJ0gOYNK4OrSGpl5cMRohYvNtdrwy3soD0HY/zKD2cliszHg/b+gl3LeBdTEKTmIl7jLCbVesdOExq3vDc6igWkpxxTIbtyLVpXeVjyd25r70SJa7HikIa1ML5zp0b8mWDzp+nd2MDwNADklUZ3fAPt2emcjwrNZxShUTVlERpFsB3qu+p5YAN+e9+dltI0CK4eJ6RMuNZGxjRcixTyf+N2TSbAQuojdyXPUWVxkfFgtsRyq3a4p3pCp4FgdYeG3rWx13d27qqzi1LKBEW0y1DK/b3tRLjT10D17zv3Sn0suC3Zd3B22OsJaSZ+e8iZ4ar5wu5QLE3wBpQdFEzNmvys2J+dtn+jrzmGeWiitJa2NqCVlOtSkCNvmV6iXd/NM/pzbWwu7LnhRT7dieA4hJCnzP/5bvxbPup81Vs71HciiE60fTF0NeDkGgvZwwBgDe/09GAQHh5FFpPjTiINJmglxe3Bg7EIMPuYZVe0SDz+76HyX+PYCE/cGXJ0o3mw27AjPAJfvLWpUNuO61Yi0djVvDIxAqelQ3+gprJL55umDzojTsH6TkLF/eooMgTm0UXyQ7nRqMk="
on:
tags: true
branch: master