-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
90 lines (88 loc) · 2.6 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
setup_and_test: &setup_and_test
stage: test
language: python
addons:
apt:
packages:
- pkg-config
- python3-dev
before_install:
- pip install -r tests-require.txt
install:
- pkg-config --cflags --libs python3
- python setup.py build
- pip install .
script:
- pytest tests/
- >
g++ tests/test_bitset.cpp xswap/src/xswap.h xswap/src/bitset.cpp
xswap/lib/roaring.c -o tests/test_bitset.o -std=c++11
`pkg-config --cflags --libs python3`
- ./tests/test_bitset.o
- >
g++ tests/test_roaring.cpp xswap/src/xswap.h xswap/src/bitset.cpp
xswap/lib/roaring.c -o tests/test_roaring.o -std=c++11
`pkg-config --cflags --libs python3`
- ./tests/test_roaring.o
build_and_upload: &build_and_upload
stage: deploy
sudo: required
if: tag IS present
services:
- docker
install:
- docker pull $DOCKER_IMAGE
script:
- docker run --rm -e PLAT=$PLAT -v `pwd`:/io $DOCKER_IMAGE /io/ci/build-wheels.sh
- /opt/python/3.6/bin/pip install twine
- /opt/python/3.6/bin/python -m twine upload -u zietzm -p $PYPI_PASSWORD --repository-url https://upload.pypi.org/legacy/ --skip-existing wheelhouse/*
compiler:
- g++
matrix:
include:
- <<: *setup_and_test
name: "Test 3.5 on Ubuntu"
dist: xenial
python: 3.5
- <<: *setup_and_test
name: "Test 3.6 on Ubuntu"
dist: xenial
python: 3.6
- <<: *setup_and_test
name: "Test 3.7 on Ubuntu"
dist: xenial
python: 3.7
- <<: *build_and_upload
name: "Build manylinux1_x86_64"
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
- PLAT=manylinux1_x86_64
- <<: *build_and_upload
name: "Build manylinux1_i686"
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
- PLAT=manylinux1_i686
- <<: *build_and_upload
name: "Build manylinux2010_x86_64"
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux2010_x86_64
- PLAT=manylinux2010_x86_64
- name: "Build documentation"
dist: xenial
language: python
python: 3.7
install:
- pip install --requirement tests-require.txt
- pip install pdoc3~=0.7.0 ghp-import~=0.5.5
script:
- pdoc --force --html
--config="git_link_template=\"https://github.com/$TRAVIS_REPO_SLUG/blob/{commit}/{path}#L{start_line}-L{end_line}\""
--output-dir=docs/output
xswap
deploy:
provider: script
script: bash ci/deploy.sh
skip_cleanup: true
on:
branch: master
condition: $TRAVIS_EVENT_TYPE = "push"