-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
68 lines (59 loc) · 1.42 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
sudo: false
dist: xenial
language: python
python:
- '3.6'
- '3.7'
- '3.8-dev'
services:
- docker
env:
matrix:
- TEST_CASSANDRA_VERSION=3.11.4
stages:
- test
- build_wheel_manylinux2010
- build_wheel_manylinux1
before_install:
- source .travis/install_openjdk8.sh
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install codecov
- python setup.py install
#caches dependencies
cache: bundler
addons:
apt:
packages:
- cmake
- python-dev
- libpython-dev
- gcc-4.8
- libtool
- python-numpy
# command to run tests
script:
- nosetests --with-coverage -v -s hecuba_py/tests/*.py
- nosetests --with-coverage -v -s hecuba_py/tests/withcassandra
jobs:
include:
- stage: build_wheel_manylinux2010
sudo: required
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux2010_x86_64 PLAT=manylinux2010_x86_64
install:
- docker pull $DOCKER_IMAGE
script:
- docker run --rm -e PLAT=$PLAT -v `pwd`:/io $DOCKER_IMAGE /io/.travis/build-wheels.sh
- stage: build_wheel_manylinux1
sudo: required
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 PLAT=manylinux1_x86_64
install:
- docker pull $DOCKER_IMAGE
script:
- docker run --rm -e PLAT=$PLAT -v `pwd`:/io $DOCKER_IMAGE /io/.travis/build-wheels.sh
# Push the results back to codecov
after_success:
- codecov