Show More
@@ -1,92 +1,98 b'' | |||
|
1 | 1 | # http://travis-ci.org/#!/ipython/ipython |
|
2 | 2 | language: python |
|
3 | 3 | |
|
4 | 4 | addons: |
|
5 | 5 | apt: |
|
6 | 6 | packages: |
|
7 | 7 | - graphviz |
|
8 | 8 | |
|
9 | 9 | python: |
|
10 | 10 | - 3.6 |
|
11 | 11 | - 3.5 |
|
12 | 12 | |
|
13 | 13 | sudo: false |
|
14 | 14 | |
|
15 | 15 | env: |
|
16 | 16 | global: |
|
17 | 17 | - PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH |
|
18 | - PYTHON_BUILD_CACHE_PATH=$HOME/.pyenv_cache | |
|
18 | 19 | |
|
19 | 20 | group: edge |
|
20 | 21 | |
|
22 | cache: | |
|
23 | directories: | |
|
24 | - $HOME/.pyenv_cache | |
|
25 | ||
|
21 | 26 | before_install: |
|
22 | 27 | - 'if [[ $GROUP != js* ]]; then COVERAGE=""; fi' |
|
23 | 28 | - | |
|
24 | 29 | if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then |
|
25 | 30 | brew update |
|
26 | 31 | brew upgrade pyenv |
|
27 | 32 | eval "$(pyenv init -)" |
|
28 | 33 | pyenv install "$PYENV_VERSION" |
|
29 | 34 | pyenv global "$PYENV_VERSION" |
|
30 | 35 | pyenv shell "$PYENV_VERSION" |
|
31 | 36 | pyenv rehash |
|
32 | 37 | python --version |
|
33 | 38 | echo $(python --version) |
|
34 | 39 | fi |
|
35 | 40 | |
|
36 | 41 | |
|
37 | 42 | install: |
|
38 | 43 | - pip install pip --upgrade |
|
39 | 44 | - pip install setuptools --upgrade |
|
40 | 45 | - pip install -e file://$PWD#egg=ipython[test] --upgrade |
|
41 | 46 | - pip install trio curio |
|
42 | 47 | - pip install codecov check-manifest --upgrade |
|
43 | 48 | |
|
44 | 49 | script: |
|
45 | 50 | - check-manifest |
|
46 | 51 | - | |
|
47 | 52 | if [[ "$TRAVIS_PYTHON_VERSION" == "nightly" ]]; then |
|
48 | 53 | # on nightly fake parso known the grammar |
|
49 | 54 | 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 | 55 | fi |
|
51 | 56 | - cd /tmp && iptest --coverage xml && cd - |
|
52 | 57 | # On the latest Python (on Linux) only, make sure that the docs build. |
|
53 | 58 | - | |
|
54 | 59 | if [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then |
|
55 | 60 | pip install -r docs/requirements.txt |
|
56 | 61 | python tools/fixup_whats_new_pr.py |
|
57 | 62 | make -C docs/ html SPHINXOPTS="-W" |
|
58 | 63 | fi |
|
64 | ||
|
59 | 65 | after_success: |
|
60 | 66 | - cp /tmp/ipy_coverage.xml ./ |
|
61 | 67 | - cp /tmp/.coverage ./ |
|
62 | 68 | - codecov |
|
63 | 69 | |
|
64 | 70 | matrix: |
|
65 | 71 | include: |
|
66 | 72 | - { python: "3.6-dev", dist: xenial, sudo: true, os: linux } |
|
67 | 73 | - { python: "3.7", dist: xenial, sudo: true, os: linux } |
|
68 | 74 | - { python: "3.7-dev", dist: xenial, sudo: true, os: linux } |
|
69 | 75 | - { python: "nightly", dist: xenial, sudo: true, os: linux } |
|
70 | 76 | - { os: osx, language: generic, env: TRAVIS_PYTHON_VERSION="3.6" PYENV_VERSION="3.6.7" } |
|
71 | 77 | - { os: osx, language: generic, env: TRAVIS_PYTHON_VERSION="3.7" PYENV_VERSION="3.7.1" } |
|
72 | 78 | allow_failures: |
|
73 | 79 | - python: nightly |
|
74 | 80 | |
|
75 | 81 | before_deploy: |
|
76 | 82 | - rm -rf dist/ |
|
77 | 83 | - python setup.py sdist |
|
78 | 84 | - python setup.py bdist_wheel |
|
79 | 85 | |
|
80 | 86 | deploy: |
|
81 | 87 | provider: releases |
|
82 | 88 | api_key: |
|
83 | 89 | secure: Y/Ae9tYs5aoBU8bDjN2YrwGG6tCbezj/h3Lcmtx8HQavSbBgXnhnZVRb2snOKD7auqnqjfT/7QMm4ZyKvaOEgyggGktKqEKYHC8KOZ7yp8I5/UMDtk6j9TnXpSqqBxPiud4MDV76SfRYEQiaDoG4tGGvSfPJ9KcNjKrNvSyyxns= |
|
84 | 90 | file: dist/* |
|
85 | 91 | file_glob: true |
|
86 | 92 | skip_cleanup: true |
|
87 | 93 | on: |
|
88 | 94 | repo: ipython/ipython |
|
89 | 95 | all_branches: true # Backports are released from e.g. 5.x branch |
|
90 | 96 | tags: true |
|
91 | 97 | python: 3.6 # Any version should work, but we only need one |
|
92 | 98 | condition: $TRAVIS_OS_NAME = "linux" |
General Comments 0
You need to be logged in to leave comments.
Login now