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