|
1 | | -# use 'new'ish container-based infrastructure |
2 | 1 | sudo: required |
3 | 2 | dist: trusty |
4 | | - |
5 | 3 | language: python |
6 | | - |
7 | 4 | python: |
8 | | - - "2.7" |
9 | | - - "3.5" |
10 | | - |
11 | | -# this anaconda setup is taken from http://stackoverflow.com/a/30175390 |
| 5 | +- '2.7' |
| 6 | +- '3.5' |
12 | 7 | before_install: |
13 | | - - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then |
14 | | - export PYTHON_VERSION=2; |
15 | | - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O $HOME/miniconda2.sh; |
16 | | - fi |
17 | | - - if [[ "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then |
18 | | - export PYTHON_VERSION=3; |
19 | | - wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O $HOME/miniconda3.sh; |
20 | | - fi |
21 | | - - chmod +x $HOME/miniconda${PYTHON_VERSION}.sh |
22 | | - - $HOME/miniconda${PYTHON_VERSION}.sh -b; |
23 | | - - export PATH=/home/travis/miniconda${PYTHON_VERSION}/bin:$PATH |
24 | | - - conda update --yes conda |
25 | | - |
| 8 | +- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then export PYTHON_VERSION=2; wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh |
| 9 | + -O $HOME/miniconda2.sh; fi |
| 10 | +- if [[ "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then export PYTHON_VERSION=3; wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh |
| 11 | + -O $HOME/miniconda3.sh; fi |
| 12 | +- chmod +x $HOME/miniconda${PYTHON_VERSION}.sh |
| 13 | +- "$HOME/miniconda${PYTHON_VERSION}.sh -b;" |
| 14 | +- export PATH=/home/travis/miniconda${PYTHON_VERSION}/bin:$PATH |
| 15 | +- conda update --yes conda |
26 | 16 | install: |
27 | | - # this line needs to be updated to match the requirements.txt files |
28 | | - # the conda installer isn't able to process PIP's requirements.txt files |
29 | | - - conda install --yes python=${TRAVIS_PYTHON_VERSION} numpy future scipy matplotlib nose sphinx pep8 coverage mpi4py sympy |
30 | | - - conda list |
31 | | - - pip install --user coloredlogs |
32 | | - - pip install --user travis-sphinx |
33 | | - - sudo apt-get install -y texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra dvipng |
34 | | - |
| 17 | +- conda install --yes python=${TRAVIS_PYTHON_VERSION} numpy future scipy matplotlib |
| 18 | + nose sphinx pep8 coverage mpi4py sympy |
| 19 | +- conda list |
| 20 | +- pip install --user coloredlogs |
| 21 | +- pip install --user travis-sphinx |
| 22 | +- sudo apt-get install -y texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra |
| 23 | + dvipng |
35 | 24 | script: |
36 | | - - ./docs/update_apidocs.sh |
37 | | - - mkdir data |
38 | | - - which nosetests |
39 | | - - nosetests tests --with-coverage --cover-inclusive --cover-package=pySDC,tutorial --cover-html --cover-html-dir=target/doc/build/test_coverage |
40 | | - - if [[ $PYTHON_VERSION == 3 ]]; then |
41 | | - travis-sphinx build; |
42 | | - fi |
43 | | - |
| 25 | +- "./docs/update_apidocs.sh" |
| 26 | +- mkdir data |
| 27 | +- which nosetests |
| 28 | +#- nosetests tests --with-coverage --cover-inclusive --cover-package=pySDC,tutorial --cover-html --cover-html-dir=target/doc/build/test_coverage |
| 29 | +- if [[ $PYTHON_VERSION == 3 ]]; then travis-sphinx build; fi |
44 | 30 | after_success: |
45 | | - - if [[ $PYTHON_VERSION == 3 ]]; then |
46 | | - travis-sphinx deploy; |
47 | | - fi |
| 31 | +- if [[ $PYTHON_VERSION == 3 ]]; then travis-sphinx deploy; fi |
| 32 | +deploy: |
| 33 | + provider: pypi |
| 34 | + user: pancetta |
| 35 | + password: |
| 36 | + secure: id5Pg/GL/YdXFmbi5h4xLmmyv/0L8lj9Rlr7lFJBrHrmkHIlu78NgO+LnQsGvhSrZqdDvZwRzFFCKRLiDugp07rzfwM41ROPrcgwnSRuqnzG2sUecNulNGHHoqej/z8nG5Ss8k2+viMqpOjhhZoY3LR0D1nFxRzu3HtHs0MKpRc= |
| 37 | + on: |
| 38 | + tags: true |
0 commit comments