-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
42 lines (34 loc) · 916 Bytes
/
.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
language: python
python:
- '3.7'
- '3.8'
- '3.9'
services:
- docker
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 PLAT=manylinux1_x86_64
- DOCKER_IMAGE=quay.io/pypa/manylinux1_i686 PRE_CMD=linux32 PLAT=manylinux1_i686
- DOCKER_IMAGE=quay.io/pypa/manylinux2010_x86_64 PLAT=manylinux2010_x86_64
before_install:
- docker pull $DOCKER_IMAGE
install:
- sudo find /usr -name '*.pyc' -delete
- sudo apt update
- sudo apt install libboost-dev
- pip install -r requirements.txt
- pip install .
script:
- pytest --cov-append --cov=./waterz ./tests --verbose
after_success:
- coveralls
- chmod +x ./travis/build-wheels.sh
- docker run --rm -e PLAT=$PLAT -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/travis/build-wheels.sh
- ls wheelhouse/
- |
if [[ $TRAVIS_TAG ]]; then
echo "upload wheel file."
python -m pip install twine
python -m twine upload wheelhouse/waterz*.whl
fi
notifications:
email: false