forked from fastavro/fastavro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (74 loc) · 2.12 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
language: python
sudo: required
before_install:
- |
if [[ $PYTHON && "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install openssl readline;
brew outdated pyenv || brew upgrade pyenv;
brew install pyenv-virtualenv;
pyenv install $PYTHON;
export PYENV_VERSION=$PYTHON;
export PATH="/Users/travis/.pyenv/shims:${PATH}";
pyenv-virtualenv venv;
source venv/bin/activate;
python --version;
fi;
install:
- pip install -r developer_requirements.txt
script:
- ./run-tests.sh
- codecov
after_success:
- if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "osx" ]]; then
FASTAVRO_USE_CYTHON=1 python setup.py bdist_wheel;
fi;
- if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "linux" && $TRAVIS_PYTHON_VERSION != *"pypy"* ]]; then
docker run --rm -v "$(pwd):/data" quay.io/pypa/manylinux1_x86_64 bash -c "/data/.travis_build_wheel.sh $TRAVIS_PYTHON_VERSION";
fi;
deploy:
provider: releases
api_key:
secure: "DqDkKBKw20riyr1WeRZtMEUlmD9cCJNf/JJD5res8HSx8wUz+rI1aDpk0wCaehdLS2zsvUpf027EHfkseUZaMr3wMfwHQ9FxSEOZ04K8Wmxqk60bzEHwqL6xBe7M3K3RxYUKH6oZDekN2I0imkllHA4v6iG0JGmoacNAos60NdA="
file_glob: true
file: 'dist/fastavro-*.whl'
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_PYTHON_VERSION != *"pypy"*
matrix:
include:
- dist: trusty
python: 2.7
- dist: trusty
python: 3.4
- dist: trusty
python: 3.5
- dist: trusty
python: 3.6
- dist: xenial
python: 3.7
- dist: trusty
python: pypy
- dist: trusty
python: pypy3
- os: osx
language: generic
env:
- PYTHON='2.7.15'
- os: osx
language: generic
env:
- PYTHON='3.4.8'
- os: osx
language: generic
env:
- PYTHON='3.5.5'
- os: osx
language: generic
env:
- PYTHON='3.6.6'
- os: osx
language: generic
env:
- PYTHON='3.7.0'