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