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