forked from fastavro/fastavro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (33 loc) · 1.03 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
language: python
dist: focal
arch:
- arm64
python:
- "3.7"
- "3.8"
- "3.9"
- "3.10.0"
before_install:
- sudo apt-get install -y libsnappy-dev
- pip install python-snappy
# https://github.com/psf/black/issues/1847
- pip install "pip<20.3"
install:
- pip install -r developer_requirements.txt
script:
- ./run-tests.sh
- codecov
- export DOCKER_IMAGE=quay.io/pypa/manylinux2014_$(arch)
after_success:
- if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "linux" && $TRAVIS_PYTHON_VERSION != *"pypy"* ]]; then
docker run --rm -v "$(pwd):/data" $DOCKER_IMAGE bash -c "/data/.travis_build_wheel.sh $TRAVIS_PYTHON_VERSION";
fi;
deploy:
provider: releases
api_key:
secure: "EihQ8C4NtMrh4phJ2VB/MniG2ceE/vxJ24EKroc8G7PyxH3us6abKDg/BDlkCQ2c/apJb+qh15OGwjsGw9z7x+6TCEIdgZ8AvXOHdQJGt7e9Mzw1SPui1AUxW67kT/35NwAzMhD0Yx3/mri8neUdbBSA6TCz3XD8XL12vEpbBRQ="
file_glob: true
file: 'dist/fastavro-*.whl'
on:
tags: true
condition: $TRAVIS_PYTHON_VERSION != *"pypy"*