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