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