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