.travis.yml
122 lines
| 3.1 KiB
| text/x-yaml
|
YamlLexer
Marc Abramowitz
|
r7633 | # http://travis-ci.org/#!/ipython/ipython | ||
language: python | ||||
Min RK
|
r24815 | os: linux | ||
Nicholas Bollweg
|
r24800 | |||
addons: | ||||
Min RK
|
r24815 | apt: | ||
packages: | ||||
- graphviz | ||||
Nicholas Bollweg
|
r24800 | |||
Marc Abramowitz
|
r7633 | python: | ||
Srinivas Reddy Thatiparthy
|
r23100 | - 3.6 | ||
Nicholas Bollweg
|
r24800 | |||
Min RK
|
r19868 | sudo: false | ||
Nicholas Bollweg
|
r24800 | |||
Olesya Baranova
|
r24057 | env: | ||
global: | ||||
- PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH | ||||
Nicholas Bollweg
|
r24800 | |||
Olesya Baranova
|
r24059 | group: edge | ||
Nicholas Bollweg
|
r24800 | |||
Marc Abramowitz
|
r7633 | before_install: | ||
Min RK
|
r24815 | - | | ||
# install Python on macOS | ||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then | ||||
env | sort | ||||
if ! which python$TRAVIS_PYTHON_VERSION; then | ||||
Matthias Bussonnier
|
r25378 | HOMEBREW_NO_AUTO_UPDATE=1 brew tap carreau/homebrew-python-frameworks | ||
Min RK
|
r24815 | HOMEBREW_NO_AUTO_UPDATE=1 brew cask install python-framework-${TRAVIS_PYTHON_VERSION/./} | ||
Nicholas Bollweg
|
r24807 | fi | ||
Min RK
|
r24815 | python3 -m pip install virtualenv | ||
python3 -m virtualenv -p $(which python$TRAVIS_PYTHON_VERSION) ~/travis-env | ||||
source ~/travis-env/bin/activate | ||||
fi | ||||
- python --version | ||||
Nicholas Bollweg
|
r24800 | |||
Marc Abramowitz
|
r7633 | install: | ||
Nicholas Bollweg
|
r24817 | - pip install pip --upgrade | ||
- pip install setuptools --upgrade | ||||
- pip install -e file://$PWD#egg=ipython[test] --upgrade | ||||
Matthias Bussonnier
|
r25199 | - pip install trio curio --upgrade --upgrade-strategy eager | ||
Thomas A Caswell
|
r25420 | - pip install pytest matplotlib | ||
Nicholas Bollweg
|
r24817 | - pip install codecov check-manifest --upgrade | ||
Nicholas Bollweg
|
r24800 | |||
Marc Abramowitz
|
r7633 | script: | ||
Nicholas Bollweg
|
r24817 | - check-manifest | ||
- | | ||||
if [[ "$TRAVIS_PYTHON_VERSION" == "nightly" ]]; then | ||||
# on nightly fake parso known the grammar | ||||
cp /home/travis/virtualenv/python3.8-dev/lib/python3.8/site-packages/parso/python/grammar37.txt /home/travis/virtualenv/python3.8-dev/lib/python3.8/site-packages/parso/python/grammar38.txt | ||||
fi | ||||
- cd /tmp && iptest --coverage xml && cd - | ||||
Matthias Bussonnier
|
r25117 | - pytest IPython | ||
Nicholas Bollweg
|
r24817 | # On the latest Python (on Linux) only, make sure that the docs build. | ||
- | | ||||
if [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | ||||
pip install -r docs/requirements.txt | ||||
python tools/fixup_whats_new_pr.py | ||||
make -C docs/ html SPHINXOPTS="-W" | ||||
fi | ||||
Nicholas Bollweg
|
r24809 | |||
Matthias Bussonnier
|
r19539 | after_success: | ||
Nicholas Bollweg
|
r24817 | - cp /tmp/ipy_coverage.xml ./ | ||
- cp /tmp/.coverage ./ | ||||
- codecov | ||||
Min RK
|
r22473 | |||
matrix: | ||||
Min RK
|
r24815 | include: | ||
ossdev07
|
r25413 | - arch: amd64 | ||
python: "3.7" | ||||
Min RK
|
r24815 | dist: xenial | ||
sudo: true | ||||
ossdev07
|
r25413 | - arch: arm64 | ||
python: "3.7" | ||||
Matthias Bussonnier
|
r24922 | dist: xenial | ||
Matthias Bussonnier
|
r25421 | env: ARM64=True | ||
Matthias Bussonnier
|
r24922 | sudo: true | ||
ossdev07
|
r25413 | - arch: amd64 | ||
python: "3.8-dev" | ||||
Min RK
|
r24815 | dist: xenial | ||
sudo: true | ||||
ossdev07
|
r25413 | - arch: amd64 | ||
python: "3.7-dev" | ||||
dist: xenial | ||||
sudo: true | ||||
- arch: amd64 | ||||
python: "nightly" | ||||
dist: xenial | ||||
sudo: true | ||||
- arch: arm64 | ||||
python: "nightly" | ||||
dist: bionic | ||||
Matthias Bussonnier
|
r25421 | env: ARM64=True | ||
ossdev07
|
r25413 | sudo: true | ||
Min RK
|
r24815 | - os: osx | ||
language: generic | ||||
python: 3.6 | ||||
env: TRAVIS_PYTHON_VERSION=3.6 | ||||
- os: osx | ||||
language: generic | ||||
python: 3.7 | ||||
env: TRAVIS_PYTHON_VERSION=3.7 | ||||
allow_failures: | ||||
- python: nightly | ||||
Thomas Kluyver
|
r23453 | |||
before_deploy: | ||||
Nicholas Bollweg
|
r24817 | - rm -rf dist/ | ||
- python setup.py sdist | ||||
- python setup.py bdist_wheel | ||||
Thomas Kluyver
|
r23453 | |||
deploy: | ||||
Min RK
|
r24815 | provider: releases | ||
api_key: | ||||
Nicholas Bollweg
|
r24817 | secure: Y/Ae9tYs5aoBU8bDjN2YrwGG6tCbezj/h3Lcmtx8HQavSbBgXnhnZVRb2snOKD7auqnqjfT/7QMm4ZyKvaOEgyggGktKqEKYHC8KOZ7yp8I5/UMDtk6j9TnXpSqqBxPiud4MDV76SfRYEQiaDoG4tGGvSfPJ9KcNjKrNvSyyxns= | ||
Min RK
|
r24815 | file: dist/* | ||
file_glob: true | ||||
skip_cleanup: true | ||||
on: | ||||
repo: ipython/ipython | ||||
all_branches: true # Backports are released from e.g. 5.x branch | ||||
tags: true | ||||
python: 3.6 # Any version should work, but we only need one | ||||
condition: $TRAVIS_OS_NAME = "linux" | ||||