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