Show More
@@ -1,114 +1,114 b'' | |||||
1 | # http://travis-ci.org/#!/ipython/ipython |
|
1 | # http://travis-ci.org/#!/ipython/ipython | |
2 | language: python |
|
2 | language: python | |
3 | os: linux |
|
3 | os: linux | |
4 |
|
4 | |||
5 | addons: |
|
5 | addons: | |
6 | apt: |
|
6 | apt: | |
7 | packages: |
|
7 | packages: | |
8 | - graphviz |
|
8 | - graphviz | |
9 |
|
9 | |||
10 | python: |
|
10 | python: | |
11 | - 3.6 |
|
11 | - 3.6 | |
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 | - | |
|
22 | - | | |
23 | # install Python on macOS |
|
23 | # install Python on macOS | |
24 | if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then |
|
24 | if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then | |
25 | env | sort |
|
25 | env | sort | |
26 | if ! which python$TRAVIS_PYTHON_VERSION; then |
|
26 | if ! which python$TRAVIS_PYTHON_VERSION; then | |
27 | HOMEBREW_NO_AUTO_UPDATE=1 brew tap minrk/homebrew-python-frameworks |
|
27 | HOMEBREW_NO_AUTO_UPDATE=1 brew tap minrk/homebrew-python-frameworks | |
28 | HOMEBREW_NO_AUTO_UPDATE=1 brew cask install python-framework-${TRAVIS_PYTHON_VERSION/./} |
|
28 | HOMEBREW_NO_AUTO_UPDATE=1 brew cask install python-framework-${TRAVIS_PYTHON_VERSION/./} | |
29 | fi |
|
29 | fi | |
30 | python3 -m pip install virtualenv |
|
30 | python3 -m pip install virtualenv | |
31 | python3 -m virtualenv -p $(which python$TRAVIS_PYTHON_VERSION) ~/travis-env |
|
31 | python3 -m virtualenv -p $(which python$TRAVIS_PYTHON_VERSION) ~/travis-env | |
32 | source ~/travis-env/bin/activate |
|
32 | source ~/travis-env/bin/activate | |
33 | fi |
|
33 | fi | |
34 | - python --version |
|
34 | - python --version | |
35 |
|
35 | |||
36 | install: |
|
36 | install: | |
37 | - pip install pip --upgrade |
|
37 | - pip install pip --upgrade | |
38 | - pip install setuptools --upgrade |
|
38 | - pip install setuptools --upgrade | |
39 | - pip install -e file://$PWD#egg=ipython[test] --upgrade |
|
39 | - pip install -e file://$PWD#egg=ipython[test] --upgrade | |
40 | - pip install trio curio --upgrade --upgrade-strategy eager |
|
40 | - pip install trio curio --upgrade --upgrade-strategy eager | |
41 | - pip install pytest 'matplotlib !=3.2.0' mypy |
|
41 | - pip install pytest 'matplotlib !=3.2.0' mypy | |
42 | - pip install codecov check-manifest --upgrade |
|
42 | - pip install codecov check-manifest --upgrade | |
43 |
|
43 | |||
44 | script: |
|
44 | script: | |
45 | - check-manifest |
|
45 | - check-manifest | |
46 | - | |
|
46 | - | | |
47 | if [[ "$TRAVIS_PYTHON_VERSION" == "nightly" ]]; then |
|
47 | if [[ "$TRAVIS_PYTHON_VERSION" == "nightly" ]]; then | |
48 | # on nightly fake parso known the grammar |
|
48 | # on nightly fake parso known the grammar | |
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 |
|
49 | cp /home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/parso/python/grammar38.txt /home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/parso/python/grammar39.txt | |
50 | fi |
|
50 | fi | |
51 | - cd /tmp && iptest --coverage xml && cd - |
|
51 | - cd /tmp && iptest --coverage xml && cd - | |
52 | - pytest IPython |
|
52 | - pytest IPython | |
53 | - mypy --ignore-missing-imports -m IPython.terminal.ptutils |
|
53 | - mypy --ignore-missing-imports -m IPython.terminal.ptutils | |
54 | # On the latest Python (on Linux) only, make sure that the docs build. |
|
54 | # On the latest Python (on Linux) only, make sure that the docs build. | |
55 | - | |
|
55 | - | | |
56 | if [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then |
|
56 | if [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | |
57 | pip install -r docs/requirements.txt |
|
57 | pip install -r docs/requirements.txt | |
58 | python tools/fixup_whats_new_pr.py |
|
58 | python tools/fixup_whats_new_pr.py | |
59 | make -C docs/ html SPHINXOPTS="-W" |
|
59 | make -C docs/ html SPHINXOPTS="-W" | |
60 | fi |
|
60 | fi | |
61 |
|
61 | |||
62 | after_success: |
|
62 | after_success: | |
63 | - cp /tmp/ipy_coverage.xml ./ |
|
63 | - cp /tmp/ipy_coverage.xml ./ | |
64 | - cp /tmp/.coverage ./ |
|
64 | - cp /tmp/.coverage ./ | |
65 | - codecov |
|
65 | - codecov | |
66 |
|
66 | |||
67 | matrix: |
|
67 | matrix: | |
68 | include: |
|
68 | include: | |
69 | - arch: amd64 |
|
69 | - arch: amd64 | |
70 | python: "3.7" |
|
70 | python: "3.7" | |
71 | dist: xenial |
|
71 | dist: xenial | |
72 | sudo: true |
|
72 | sudo: true | |
73 | - arch: amd64 |
|
73 | - arch: amd64 | |
74 | python: "3.8" |
|
74 | python: "3.8" | |
75 | dist: xenial |
|
75 | dist: xenial | |
76 | sudo: true |
|
76 | sudo: true | |
77 | - arch: amd64 |
|
77 | - arch: amd64 | |
78 | python: "nightly" |
|
78 | python: "nightly" | |
79 | dist: xenial |
|
79 | dist: xenial | |
80 | sudo: true |
|
80 | sudo: true | |
81 | - arch: arm64 |
|
81 | - arch: arm64 | |
82 | python: "nightly" |
|
82 | python: "nightly" | |
83 | dist: bionic |
|
83 | dist: bionic | |
84 | env: ARM64=True |
|
84 | env: ARM64=True | |
85 | sudo: true |
|
85 | sudo: true | |
86 | - os: osx |
|
86 | - os: osx | |
87 | language: generic |
|
87 | language: generic | |
88 | python: 3.6 |
|
88 | python: 3.6 | |
89 | env: TRAVIS_PYTHON_VERSION=3.6 |
|
89 | env: TRAVIS_PYTHON_VERSION=3.6 | |
90 | - os: osx |
|
90 | - os: osx | |
91 | language: generic |
|
91 | language: generic | |
92 | python: 3.7 |
|
92 | python: 3.7 | |
93 | env: TRAVIS_PYTHON_VERSION=3.7 |
|
93 | env: TRAVIS_PYTHON_VERSION=3.7 | |
94 | allow_failures: |
|
94 | allow_failures: | |
95 | - python: nightly |
|
95 | - python: nightly | |
96 |
|
96 | |||
97 | before_deploy: |
|
97 | before_deploy: | |
98 | - rm -rf dist/ |
|
98 | - rm -rf dist/ | |
99 | - python setup.py sdist |
|
99 | - python setup.py sdist | |
100 | - python setup.py bdist_wheel |
|
100 | - python setup.py bdist_wheel | |
101 |
|
101 | |||
102 | deploy: |
|
102 | deploy: | |
103 | provider: releases |
|
103 | provider: releases | |
104 | api_key: |
|
104 | api_key: | |
105 | secure: Y/Ae9tYs5aoBU8bDjN2YrwGG6tCbezj/h3Lcmtx8HQavSbBgXnhnZVRb2snOKD7auqnqjfT/7QMm4ZyKvaOEgyggGktKqEKYHC8KOZ7yp8I5/UMDtk6j9TnXpSqqBxPiud4MDV76SfRYEQiaDoG4tGGvSfPJ9KcNjKrNvSyyxns= |
|
105 | secure: Y/Ae9tYs5aoBU8bDjN2YrwGG6tCbezj/h3Lcmtx8HQavSbBgXnhnZVRb2snOKD7auqnqjfT/7QMm4ZyKvaOEgyggGktKqEKYHC8KOZ7yp8I5/UMDtk6j9TnXpSqqBxPiud4MDV76SfRYEQiaDoG4tGGvSfPJ9KcNjKrNvSyyxns= | |
106 | file: dist/* |
|
106 | file: dist/* | |
107 | file_glob: true |
|
107 | file_glob: true | |
108 | skip_cleanup: true |
|
108 | skip_cleanup: true | |
109 | on: |
|
109 | on: | |
110 | repo: ipython/ipython |
|
110 | repo: ipython/ipython | |
111 | all_branches: true # Backports are released from e.g. 5.x branch |
|
111 | all_branches: true # Backports are released from e.g. 5.x branch | |
112 | tags: true |
|
112 | tags: true | |
113 | python: 3.6 # Any version should work, but we only need one |
|
113 | python: 3.6 # Any version should work, but we only need one | |
114 | condition: $TRAVIS_OS_NAME = "linux" |
|
114 | condition: $TRAVIS_OS_NAME = "linux" |
General Comments 0
You need to be logged in to leave comments.
Login now