Show More
@@ -1,127 +1,127 | |||
|
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.6 |
|
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 | - if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then |
|
38 | 38 | echo "for the tiem being still test on 3.6"; |
|
39 | 39 | sed -ibkp s/7/6/g setup.py; |
|
40 | 40 | git diff; |
|
41 | 41 | fi |
|
42 | 42 | - pip install -e file://$PWD#egg=ipython[test] --upgrade |
|
43 | 43 | - pip install trio curio --upgrade --upgrade-strategy eager |
|
44 | 44 | - pip install 'pytest<6' 'matplotlib !=3.2.0' mypy |
|
45 | 45 | - pip install codecov check-manifest --upgrade |
|
46 | 46 | - pip install mypy darker |
|
47 | 47 | - | |
|
48 | 48 | if [[ "$MASTER_DEPENDENCIES" == "True" ]]; then |
|
49 | 49 | pip install git+https://github.com/ipython/traitlets#egg=traitlets --force |
|
50 | 50 | fi |
|
51 | 51 | |
|
52 | 52 | |
|
53 | 53 | script: |
|
54 | 54 | - check-manifest |
|
55 | 55 | - | |
|
56 | 56 | if [[ "$TRAVIS_PYTHON_VERSION" == "nightly" ]]; then |
|
57 | 57 | # on nightly fake parso known the grammar |
|
58 | 58 | 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 |
|
59 | 59 | fi |
|
60 | 60 | - cd /tmp && iptest --coverage xml && cd - |
|
61 | 61 | - pytest IPython |
|
62 | 62 | - mypy IPython/terminal/ptutils.py |
|
63 | 63 | - mypy IPython/core/c*.py |
|
64 | - darker -r 60625f241f298b5039cb2debc365db38aa7bb522 . | |
|
64 | - darker -r 60625f241f298b5039cb2debc365db38aa7bb522 --check . | |
|
65 | 65 | # On the latest Python (on Linux) only, make sure that the docs build. |
|
66 | 66 | - | |
|
67 | 67 | if [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then |
|
68 | 68 | pip install -r docs/requirements.txt |
|
69 | 69 | python tools/fixup_whats_new_pr.py |
|
70 | 70 | make -C docs/ html SPHINXOPTS="-W" |
|
71 | 71 | fi |
|
72 | 72 | |
|
73 | 73 | after_success: |
|
74 | 74 | - cp /tmp/ipy_coverage.xml ./ |
|
75 | 75 | - cp /tmp/.coverage ./ |
|
76 | 76 | - codecov |
|
77 | 77 | |
|
78 | 78 | matrix: |
|
79 | 79 | include: |
|
80 | 80 | - arch: amd64 |
|
81 | 81 | python: "3.6" |
|
82 | 82 | dist: xenial |
|
83 | 83 | - arch: amd64 |
|
84 | 84 | python: "3.7" |
|
85 | 85 | dist: xenial |
|
86 | 86 | - arch: amd64 |
|
87 | 87 | python: "3.8" |
|
88 | 88 | dist: xenial |
|
89 | 89 | - arch: amd64 |
|
90 | 90 | python: "nightly" |
|
91 | 91 | dist: xenial |
|
92 | 92 | - arch: arm64 |
|
93 | 93 | python: "nightly" |
|
94 | 94 | dist: bionic |
|
95 | 95 | env: ARM64=True |
|
96 | 96 | - os: osx |
|
97 | 97 | language: generic |
|
98 | 98 | python: 3.6 |
|
99 | 99 | env: TRAVIS_PYTHON_VERSION=3.6 |
|
100 | 100 | - os: osx |
|
101 | 101 | language: generic |
|
102 | 102 | python: 3.7 |
|
103 | 103 | env: TRAVIS_PYTHON_VERSION=3.7 |
|
104 | 104 | - arch: amd64 |
|
105 | 105 | python: "3.8" |
|
106 | 106 | env: MASTER_DEPENDENCIES=True |
|
107 | 107 | allow_failures: |
|
108 | 108 | - python: nightly |
|
109 | 109 | |
|
110 | 110 | before_deploy: |
|
111 | 111 | - rm -rf dist/ |
|
112 | 112 | - python setup.py sdist |
|
113 | 113 | - python setup.py bdist_wheel |
|
114 | 114 | |
|
115 | 115 | deploy: |
|
116 | 116 | provider: releases |
|
117 | 117 | api_key: |
|
118 | 118 | secure: Y/Ae9tYs5aoBU8bDjN2YrwGG6tCbezj/h3Lcmtx8HQavSbBgXnhnZVRb2snOKD7auqnqjfT/7QMm4ZyKvaOEgyggGktKqEKYHC8KOZ7yp8I5/UMDtk6j9TnXpSqqBxPiud4MDV76SfRYEQiaDoG4tGGvSfPJ9KcNjKrNvSyyxns= |
|
119 | 119 | file: dist/* |
|
120 | 120 | file_glob: true |
|
121 | 121 | cleanup: false |
|
122 | 122 | on: |
|
123 | 123 | repo: ipython/ipython |
|
124 | 124 | all_branches: true # Backports are released from e.g. 5.x branch |
|
125 | 125 | tags: true |
|
126 | 126 | python: 3.6 # Any version should work, but we only need one |
|
127 | 127 | condition: $TRAVIS_OS_NAME = "linux" |
General Comments 0
You need to be logged in to leave comments.
Login now