-
Notifications
You must be signed in to change notification settings - Fork 499
/
.travis.yml
124 lines (114 loc) · 2.57 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: = 0
conditions: v1
language: python
python:
- "2.6"
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7-dev"
- "pypy2.7-5.10.0"
- "pypy3.5-5.10.1"
sudo: false
cache:
pip: true
directories:
- $HOME/.cache/pre-commit
- $HOME/.pre-commit
- $HOME/Library/Caches/Homebrew
# build libyaml
before_script:
- pushd /tmp
- git clone https://github.com/yaml/libyaml.git -b 0.2.2-pre1 --depth=1 libyaml
- cd libyaml
- ./bootstrap
- ./configure
- make
- make test-all
- sudo make install
- sudo ldconfig
- popd
install:
- python -m pip install cython tox
script:
- tox
.mixtures:
- &osx_python
os: osx
osx_image: xcode9.4
language: generic
before_install:
- brew install zlib readline
- brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/cac0ae5/Formula/pyenv.rb || brew upgrade pyenv
- &ensure_pyenv_preloaded eval "$(pyenv init -)"
- &select_specific_python |
if [[ ! "$TRAVIS_PYTHON_VERSION" =~ "dev" ]]
then
export TRAVIS_PYTHON_VERSION=$(\
pyenv install --list | \
grep -E '\s\s'"$TRAVIS_PYTHON_VERSION" | grep -vE 'dev|rc' | \
tail -n 1 | tr -d '[:space:]'\
)
fi
- &install_python pyenv install --skip-existing --keep --verbose "$TRAVIS_PYTHON_VERSION"
- &switch_python pyenv shell "$TRAVIS_PYTHON_VERSION"
- &python_version python --version
before_cache:
- brew --cache
jobs:
fast_finish: true
allow_failures:
- os: osx
env:
TRAVIS_PYTHON_VERSION: "2.6"
- os: osx
env:
TRAVIS_PYTHON_VERSION: "2.7"
- os: osx
env:
TRAVIS_PYTHON_VERSION: "pypy3.5-5.10.1"
include:
- python: "3.7"
dist: xenial
sudo: required
- <<: *osx_python
env:
TRAVIS_PYTHON_VERSION: "2.6"
python: "2.6"
- <<: *osx_python
env:
TRAVIS_PYTHON_VERSION: "2.7"
python: "2.7"
- <<: *osx_python
env:
TRAVIS_PYTHON_VERSION: "3.4"
python: "3.4"
- <<: *osx_python
env:
TRAVIS_PYTHON_VERSION: "3.5"
python: "3.5"
- <<: *osx_python
env:
TRAVIS_PYTHON_VERSION: "3.6"
python: "3.6"
- <<: *osx_python
env:
TRAVIS_PYTHON_VERSION: "3.7-dev"
python: "3.7-dev"
- <<: *osx_python
env:
TRAVIS_PYTHON_VERSION: "pypy3.5-5.10.1"
python: "pypy3.5-5.10.1"
# This placeholder can be extended to do actual upload of a dist to
# PYPI, it will only appear if the current commit is tagged:
- stage: Deploy to PYPI (placeholder)
if: tag IS present
install: []
script: []
deploy:
provider: pypi
skip-cleanup: true
user: PLACEHOLDER
password:
secure: PLACEHOLDER