Skip to content

Commit 9cc66fe

Browse files
committed
Autodeploy to PyPI using Travis
1 parent a06c57d commit 9cc66fe

File tree

1 file changed

+23
-25
lines changed

1 file changed

+23
-25
lines changed

.travis.yml

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
sudo: false
2-
32
language: python
4-
53
matrix:
64
fast_finish: true
75
include:
@@ -13,29 +11,29 @@ matrix:
1311
env: TEST_TARGET=default
1412
- python: 3.6
1513
env: TEST_TARGET=coding_standards
16-
1714
before_install:
18-
- wget http://bit.ly/miniconda -O miniconda.sh
19-
- bash miniconda.sh -b -p $HOME/miniconda
20-
- export PATH="$HOME/miniconda/bin:$PATH"
21-
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
22-
- conda update conda
23-
- conda config --add channels conda-forge --force
24-
- conda create --name TEST python=$TRAVIS_PYTHON_VERSION --file requirements.txt --file requirements-dev.txt
25-
- source activate TEST
26-
- pip install check-manifest
27-
# GUI
28-
- "export DISPLAY=:99.0"
29-
- "sh -e /etc/init.d/xvfb start"
30-
15+
- wget http://bit.ly/miniconda -O miniconda.sh
16+
- bash miniconda.sh -b -p $HOME/miniconda
17+
- export PATH="$HOME/miniconda/bin:$PATH"
18+
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
19+
- conda update conda
20+
- conda config --add channels conda-forge --force
21+
- conda create --name TEST python=$TRAVIS_PYTHON_VERSION --file requirements.txt --file
22+
requirements-dev.txt
23+
- source activate TEST
24+
- pip install check-manifest
25+
- export DISPLAY=:99.0
26+
- sh -e /etc/init.d/xvfb start
3127
install:
32-
- python setup.py install
33-
28+
- python setup.py install
3429
script:
35-
- if [[ $TEST_TARGET == 'default' ]]; then
36-
pytest --verbose tests ;
37-
fi
38-
39-
- if [[ $TEST_TARGET == 'coding_standards' ]]; then
40-
flake8 --ignore=E501 windrose samples tests ;
41-
fi
30+
- if [[ $TEST_TARGET == 'default' ]]; then pytest --verbose tests ; fi
31+
- if [[ $TEST_TARGET == 'coding_standards' ]]; then flake8 --ignore=E501 windrose
32+
samples tests ; fi
33+
deploy:
34+
provider: pypi
35+
user: "scls"
36+
password:
37+
secure: nWeqLYO8BPyM1JSewV5nzspEUWSYhy+KaoWMToW5ExOmcgxBAcXyrLLcCttg15XeSO7nEN5UzauBj7upEZbybtbSzdiARlWlHwn4b9inL2EKpPjfJ2eBN98V669NCYn3EjG/CSXW9Z8njC8dRkvfboOTYr3JKPjDvWX4wK95l3Z3MHr5jdvbAgSp81XWbGG7D4nc1QdOFrxIB/56Dhw3spP6H8VYp8DruhjRyLWpLchQCFTM3x34QTOHi4iKCb+lA6lOcOC3VLJNQgWRpzpwAFCASAe9eDZuOPczBU9pZB5Vaz/YFbb/Q7rH7EZD73qzAkA431j3ozoylJx7yu75vu1jrFOWEML9wWg6oiZGwrZqkixN2zH6yCECYiR3sIb+bPZIsKwBWFNSvIMzOezgEDF/OLb28KEWkq6GUVBSSsVxalBjM1oQljPLLsatXK6B/LWwDdwTKrVAK70Df5NOYmoiQwClpDxHbm6nOyWj8aFNfKYWDqJuQQ5E+vA57J0rM7FeR5rT+CdDFp+dvK+eoaN1fae3c6JoUCgFDL4fws+HLnkuZ305F7CmCrJn9fl0sIB41kp4INRuNb4RrOyyrTx5Ff+oWU6KXfu4FMr4kzorHsNOtOz24awhybhMVtsT+amkli6ebA0vF+P7q2G91TwlLBd/Fjf/LdQSulx2Xv4=
38+
on:
39+
tags: true

0 commit comments

Comments
 (0)