Show More
@@ -1,85 +1,92 b'' | |||||
1 | # http://travis-ci.org/#!/ipython/ipython |
|
1 | # http://travis-ci.org/#!/ipython/ipython | |
2 | language: python |
|
2 | language: python | |
3 |
|
3 | |||
4 | addons: |
|
4 | addons: | |
5 | apt: |
|
5 | apt: | |
6 | packages: |
|
6 | packages: | |
7 | - graphviz |
|
7 | - graphviz | |
8 |
|
8 | |||
9 | python: |
|
9 | python: | |
10 | - 3.6 |
|
10 | - 3.6 | |
11 | - 3.5 |
|
11 | - 3.5 | |
12 |
|
12 | |||
13 | sudo: false |
|
13 | sudo: false | |
14 |
|
14 | |||
15 | env: |
|
15 | env: | |
16 | global: |
|
16 | global: | |
17 | - PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH |
|
17 | - PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH | |
18 |
|
18 | |||
19 | group: edge |
|
19 | group: edge | |
20 |
|
20 | |||
21 | before_install: |
|
21 | before_install: | |
22 | - 'if [[ $GROUP != js* ]]; then COVERAGE=""; fi' |
|
22 | - 'if [[ $GROUP != js* ]]; then COVERAGE=""; fi' | |
23 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi |
|
23 | - | | |
24 |
|
|
24 | if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then | |
25 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pyenv install "$PYENV_VERSION" ; fi |
|
25 | brew update | |
26 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pyenv global "$PYENV_VERSION" ; fi |
|
26 | brew upgrade pyenv | |
27 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python --version ; fi |
|
27 | eval "$(pyenv init -)" | |
|
28 | pyenv install "$PYENV_VERSION" | |||
|
29 | pyenv global "$PYENV_VERSION" | |||
|
30 | pyenv shell "$PYENV_VERSION" | |||
|
31 | pyenv rehash | |||
|
32 | python --version | |||
|
33 | echo $(python --version) | |||
|
34 | fi | |||
28 |
|
35 | |||
29 |
|
36 | |||
30 | install: |
|
37 | install: | |
31 | - pip install pip --upgrade |
|
38 | - pip install pip --upgrade | |
32 | - pip install setuptools --upgrade |
|
39 | - pip install setuptools --upgrade | |
33 | - pip install -e file://$PWD#egg=ipython[test] --upgrade |
|
40 | - pip install -e file://$PWD#egg=ipython[test] --upgrade | |
34 | - pip install trio curio |
|
41 | - pip install trio curio | |
35 | - pip install codecov check-manifest --upgrade |
|
42 | - pip install codecov check-manifest --upgrade | |
36 |
|
43 | |||
37 | script: |
|
44 | script: | |
38 | - check-manifest |
|
45 | - check-manifest | |
39 | - | |
|
46 | - | | |
40 | if [[ "$TRAVIS_PYTHON_VERSION" == "nightly" ]]; then |
|
47 | if [[ "$TRAVIS_PYTHON_VERSION" == "nightly" ]]; then | |
41 | # on nightly fake parso known the grammar |
|
48 | # on nightly fake parso known the grammar | |
42 | cp /home/travis/virtualenv/python3.8-dev/lib/python3.8/site-packages/parso/python/grammar37.txt /home/travis/virtualenv/python3.8-dev/lib/python3.8/site-packages/parso/python/grammar38.txt |
|
49 | cp /home/travis/virtualenv/python3.8-dev/lib/python3.8/site-packages/parso/python/grammar37.txt /home/travis/virtualenv/python3.8-dev/lib/python3.8/site-packages/parso/python/grammar38.txt | |
43 | fi |
|
50 | fi | |
44 | - cd /tmp && iptest --coverage xml && cd - |
|
51 | - cd /tmp && iptest --coverage xml && cd - | |
45 | # On the latest Python only, make sure that the docs build. |
|
52 | # On the latest Python only, make sure that the docs build. | |
46 | - | |
|
53 | - | | |
47 | if [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]]; then |
|
54 | if [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]]; then | |
48 | pip install -r docs/requirements.txt |
|
55 | pip install -r docs/requirements.txt | |
49 | python tools/fixup_whats_new_pr.py |
|
56 | python tools/fixup_whats_new_pr.py | |
50 | make -C docs/ html SPHINXOPTS="-W" |
|
57 | make -C docs/ html SPHINXOPTS="-W" | |
51 | fi |
|
58 | fi | |
52 | after_success: |
|
59 | after_success: | |
53 | - cp /tmp/ipy_coverage.xml ./ |
|
60 | - cp /tmp/ipy_coverage.xml ./ | |
54 | - cp /tmp/.coverage ./ |
|
61 | - cp /tmp/.coverage ./ | |
55 | - codecov |
|
62 | - codecov | |
56 |
|
63 | |||
57 | matrix: |
|
64 | matrix: | |
58 | include: |
|
65 | include: | |
59 | - { python: "3.6-dev", dist: xenial, sudo: true, os: linux } |
|
66 | - { python: "3.6-dev", dist: xenial, sudo: true, os: linux } | |
60 | - { python: "3.7", dist: xenial, sudo: true, os: linux } |
|
67 | - { python: "3.7", dist: xenial, sudo: true, os: linux } | |
61 | - { python: "3.7-dev", dist: xenial, sudo: true, os: linux } |
|
68 | - { python: "3.7-dev", dist: xenial, sudo: true, os: linux } | |
62 | - { python: "nightly", dist: xenial, sudo: true, os: linux } |
|
69 | - { python: "nightly", dist: xenial, sudo: true, os: linux } | |
63 | - { os: osx, language: generic, env: TRAVIS_PYTHON_VERSION="3.6" PYENV_VERSION="3.6.7" } |
|
70 | - { os: osx, language: generic, env: TRAVIS_PYTHON_VERSION="3.6" PYENV_VERSION="3.6.7" } | |
64 | - { os: osx, language: generic, env: TRAVIS_PYTHON_VERSION="3.7" PYENV_VERSION="3.7.1" } |
|
71 | - { os: osx, language: generic, env: TRAVIS_PYTHON_VERSION="3.7" PYENV_VERSION="3.7.1" } | |
65 | allow_failures: |
|
72 | allow_failures: | |
66 | - python: nightly |
|
73 | - python: nightly | |
67 |
|
74 | |||
68 | before_deploy: |
|
75 | before_deploy: | |
69 | - rm -rf dist/ |
|
76 | - rm -rf dist/ | |
70 | - python setup.py sdist |
|
77 | - python setup.py sdist | |
71 | - python setup.py bdist_wheel |
|
78 | - python setup.py bdist_wheel | |
72 |
|
79 | |||
73 | deploy: |
|
80 | deploy: | |
74 | provider: releases |
|
81 | provider: releases | |
75 | api_key: |
|
82 | api_key: | |
76 | secure: Y/Ae9tYs5aoBU8bDjN2YrwGG6tCbezj/h3Lcmtx8HQavSbBgXnhnZVRb2snOKD7auqnqjfT/7QMm4ZyKvaOEgyggGktKqEKYHC8KOZ7yp8I5/UMDtk6j9TnXpSqqBxPiud4MDV76SfRYEQiaDoG4tGGvSfPJ9KcNjKrNvSyyxns= |
|
83 | secure: Y/Ae9tYs5aoBU8bDjN2YrwGG6tCbezj/h3Lcmtx8HQavSbBgXnhnZVRb2snOKD7auqnqjfT/7QMm4ZyKvaOEgyggGktKqEKYHC8KOZ7yp8I5/UMDtk6j9TnXpSqqBxPiud4MDV76SfRYEQiaDoG4tGGvSfPJ9KcNjKrNvSyyxns= | |
77 | file: dist/* |
|
84 | file: dist/* | |
78 | file_glob: true |
|
85 | file_glob: true | |
79 | skip_cleanup: true |
|
86 | skip_cleanup: true | |
80 | on: |
|
87 | on: | |
81 | repo: ipython/ipython |
|
88 | repo: ipython/ipython | |
82 | all_branches: true # Backports are released from e.g. 5.x branch |
|
89 | all_branches: true # Backports are released from e.g. 5.x branch | |
83 | tags: true |
|
90 | tags: true | |
84 | python: 3.6 # Any version should work, but we only need one |
|
91 | python: 3.6 # Any version should work, but we only need one | |
85 | condition: $TRAVIS_OS_NAME = "linux" |
|
92 | condition: $TRAVIS_OS_NAME = "linux" |
General Comments 0
You need to be logged in to leave comments.
Login now