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