-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (43 loc) · 1.85 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
dist: bionic
language: python
services:
- docker
matrix:
include:
- python: 3.5
- python: 3.6
- python: 3.7
- python: 3.8
env:
global:
- CPPFLAGS="-O0 --coverage"
- TWINE_USERNAME=__token__
- secure: XCsSfrBi5xJNJJpSxP8w9InJW513zoLNqNa+B2CtFpF2f1rkyFg5J3u2R3rdQm/gkCGSNaMLcIGX96P+5vtLxTfe6sy2ERdxdazp9+0K2hfd5Mqhfz99iZB8Pz+GAPBwd055msqLr7gAknN2NFhBC0bPMvNIEWe+lk99TocWO4XyImk3aNYP0NlQzqXUFXfhOod7iH7qM63hppLaAoZOKy34gq02XIb88EZLIiunt56oRJI4nhXbFsz3Esrtjdr9PilYfQVaz8cZZopQJJ1Tgvr2QXppv0ta+X0ULwTtdkpjGsXMjdWmecyeXJW7uZ3RpMtXhoHz37+94sQeEfopp47/jTabyK/TCnfjL6EOuZUqETbaD+wAFX1LMsgAtWtP6EfRQN8dA1J+dzgDdBE2YlINLWRO1iZDdxPJl/rR7fXgy+nCRA5NCEK/bRf2J9BaKLrSAXO331zP3dQYJERMIJBz6TkN6CCKMe07wKbuzt2OIZ8y0aTfFChtmEPfrgNYDwJegD9+nYPlE1HFefX/sH0e8/JcfxwapwjBJjQKsPYFHuFdVzozmkOf5Jb7MuMW7zvCJ8NydX2mBtlqV/gqvV0CJEa1a2CWWt/t8KEoLNg0C4IQjYNv0Um8NbgtinxI7Ql4OcAh2quhDAy9hkBUePVqF+SbrCetcQEQ7UhrT60=
install:
- python -m pip install --upgrade pip setuptools
- python -m pip install --upgrade gcovr codecov
- python -m pip install --force-reinstall -r requirements.txt
- python -m pip install --force-reinstall -r requirements-tests.txt
- python setup.py develop
script:
- python -m doctest README.md
- pytest
after_success:
- gcovr --filter src/ --xml -o coverage_cpp.xml -v
- python -m codecov -f coverage.xml -X gcov
- python -m codecov -f coverage_cpp.xml -X gcov
before_deploy:
- rm -rf build
- rm *.so
- python setup.py sdist
- python -m pip install --upgrade cibuildwheel
- CIBW_BEFORE_BUILD='python -m pip install -r requirements.txt' CIBW_BUILD=$(python
-c 'import sys; print("cp" + "".join(map(str, sys.version_info[:2])) + "-*")') cibuildwheel
--output-dir dist
- python -m pip install --upgrade twine
deploy:
provider: script
script: twine upload --skip-existing dist/*
skip_cleanup: true
on:
tags: true