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