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