##// END OF EJS Templates
Still test on 3.6 – Release is 3.7+...
Matthias Bussonnier -
Show More
@@ -1,118 +1,123 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 env:
13 env:
14 global:
14 global:
15 - PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH
15 - PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH
16
16
17 group: edge
17 group: edge
18
18
19 before_install:
19 before_install:
20 - |
20 - |
21 # install Python on macOS
21 # install Python on macOS
22 if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
22 if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
23 env | sort
23 env | sort
24 if ! which python$TRAVIS_PYTHON_VERSION; then
24 if ! which python$TRAVIS_PYTHON_VERSION; then
25 HOMEBREW_NO_AUTO_UPDATE=1 brew tap minrk/homebrew-python-frameworks
25 HOMEBREW_NO_AUTO_UPDATE=1 brew tap minrk/homebrew-python-frameworks
26 HOMEBREW_NO_AUTO_UPDATE=1 brew cask install python-framework-${TRAVIS_PYTHON_VERSION/./}
26 HOMEBREW_NO_AUTO_UPDATE=1 brew cask install python-framework-${TRAVIS_PYTHON_VERSION/./}
27 fi
27 fi
28 python3 -m pip install virtualenv
28 python3 -m pip install virtualenv
29 python3 -m virtualenv -p $(which python$TRAVIS_PYTHON_VERSION) ~/travis-env
29 python3 -m virtualenv -p $(which python$TRAVIS_PYTHON_VERSION) ~/travis-env
30 source ~/travis-env/bin/activate
30 source ~/travis-env/bin/activate
31 fi
31 fi
32 - python --version
32 - python --version
33
33
34 install:
34 install:
35 - pip install pip --upgrade
35 - pip install pip --upgrade
36 - pip install setuptools --upgrade
36 - pip install setuptools --upgrade
37 - if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then
38 echo "for the tiem being still test on 3.6";
39 sed -i bkp s/7/6/g setup.py;
40 git diff;
41 fi
37 - pip install -e file://$PWD#egg=ipython[test] --upgrade
42 - pip install -e file://$PWD#egg=ipython[test] --upgrade
38 - pip install trio curio --upgrade --upgrade-strategy eager
43 - pip install trio curio --upgrade --upgrade-strategy eager
39 - pip install pytest 'matplotlib !=3.2.0' mypy
44 - pip install pytest 'matplotlib !=3.2.0' mypy
40 - pip install codecov check-manifest --upgrade
45 - pip install codecov check-manifest --upgrade
41 - pip install mypy
46 - pip install mypy
42 - |
47 - |
43 if [[ "$MASTER_DEPENDENCIES" == "True" ]]; then
48 if [[ "$MASTER_DEPENDENCIES" == "True" ]]; then
44 pip install git+https://github.com/ipython/traitlets#egg=traitlets --force
49 pip install git+https://github.com/ipython/traitlets#egg=traitlets --force
45 fi
50 fi
46
51
47
52
48 script:
53 script:
49 - check-manifest
54 - check-manifest
50 - |
55 - |
51 if [[ "$TRAVIS_PYTHON_VERSION" == "nightly" ]]; then
56 if [[ "$TRAVIS_PYTHON_VERSION" == "nightly" ]]; then
52 # on nightly fake parso known the grammar
57 # on nightly fake parso known the grammar
53 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
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
54 fi
59 fi
55 - cd /tmp && iptest --coverage xml && cd -
60 - cd /tmp && iptest --coverage xml && cd -
56 - pytest IPython
61 - pytest IPython
57 - mypy IPython/terminal/ptutils.py
62 - mypy IPython/terminal/ptutils.py
58 - mypy IPython/core/c*.py
63 - mypy IPython/core/c*.py
59 # On the latest Python (on Linux) only, make sure that the docs build.
64 # On the latest Python (on Linux) only, make sure that the docs build.
60 - |
65 - |
61 if [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
66 if [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
62 pip install -r docs/requirements.txt
67 pip install -r docs/requirements.txt
63 python tools/fixup_whats_new_pr.py
68 python tools/fixup_whats_new_pr.py
64 make -C docs/ html SPHINXOPTS="-W"
69 make -C docs/ html SPHINXOPTS="-W"
65 fi
70 fi
66
71
67 after_success:
72 after_success:
68 - cp /tmp/ipy_coverage.xml ./
73 - cp /tmp/ipy_coverage.xml ./
69 - cp /tmp/.coverage ./
74 - cp /tmp/.coverage ./
70 - codecov
75 - codecov
71
76
72 matrix:
77 matrix:
73 include:
78 include:
74 - arch: amd64
79 - arch: amd64
75 python: "3.7"
80 python: "3.7"
76 dist: xenial
81 dist: xenial
77 - arch: amd64
82 - arch: amd64
78 python: "3.8"
83 python: "3.8"
79 dist: xenial
84 dist: xenial
80 - arch: amd64
85 - arch: amd64
81 python: "nightly"
86 python: "nightly"
82 dist: xenial
87 dist: xenial
83 - arch: arm64
88 - arch: arm64
84 python: "nightly"
89 python: "nightly"
85 dist: bionic
90 dist: bionic
86 env: ARM64=True
91 env: ARM64=True
87 - os: osx
92 - os: osx
88 language: generic
93 language: generic
89 python: 3.6
94 python: 3.6
90 env: TRAVIS_PYTHON_VERSION=3.6
95 env: TRAVIS_PYTHON_VERSION=3.6
91 - os: osx
96 - os: osx
92 language: generic
97 language: generic
93 python: 3.7
98 python: 3.7
94 env: TRAVIS_PYTHON_VERSION=3.7
99 env: TRAVIS_PYTHON_VERSION=3.7
95 - arch: amd64
100 - arch: amd64
96 python: "3.8"
101 python: "3.8"
97 env: MASTER_DEPENDENCIES=True
102 env: MASTER_DEPENDENCIES=True
98 allow_failures:
103 allow_failures:
99 - python: nightly
104 - python: nightly
100
105
101 before_deploy:
106 before_deploy:
102 - rm -rf dist/
107 - rm -rf dist/
103 - python setup.py sdist
108 - python setup.py sdist
104 - python setup.py bdist_wheel
109 - python setup.py bdist_wheel
105
110
106 deploy:
111 deploy:
107 provider: releases
112 provider: releases
108 api_key:
113 api_key:
109 secure: Y/Ae9tYs5aoBU8bDjN2YrwGG6tCbezj/h3Lcmtx8HQavSbBgXnhnZVRb2snOKD7auqnqjfT/7QMm4ZyKvaOEgyggGktKqEKYHC8KOZ7yp8I5/UMDtk6j9TnXpSqqBxPiud4MDV76SfRYEQiaDoG4tGGvSfPJ9KcNjKrNvSyyxns=
114 secure: Y/Ae9tYs5aoBU8bDjN2YrwGG6tCbezj/h3Lcmtx8HQavSbBgXnhnZVRb2snOKD7auqnqjfT/7QMm4ZyKvaOEgyggGktKqEKYHC8KOZ7yp8I5/UMDtk6j9TnXpSqqBxPiud4MDV76SfRYEQiaDoG4tGGvSfPJ9KcNjKrNvSyyxns=
110 file: dist/*
115 file: dist/*
111 file_glob: true
116 file_glob: true
112 cleanup: false
117 cleanup: false
113 on:
118 on:
114 repo: ipython/ipython
119 repo: ipython/ipython
115 all_branches: true # Backports are released from e.g. 5.x branch
120 all_branches: true # Backports are released from e.g. 5.x branch
116 tags: true
121 tags: true
117 python: 3.6 # Any version should work, but we only need one
122 python: 3.6 # Any version should work, but we only need one
118 condition: $TRAVIS_OS_NAME = "linux"
123 condition: $TRAVIS_OS_NAME = "linux"
General Comments 0
You need to be logged in to leave comments. Login now