-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
67 lines (65 loc) · 1.3 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
language: python
os: linux
env:
global:
- SETUP_DIR=$TRAVIS_BUILD_DIR/.
before_install:
- python --version
- pip install -U pip
- pip install flake8
- pip install coverage
- pip install codecov
- pip install pytest
install:
- pip install .[all]
jobs:
fast_finish: true
allow_failures:
- arch: arm64
include:
- stage: AMD64
python: 3.6
dist: xenial
after_success:
- bash <(curl -s https://codecov.io/bash)
- python: 3.6
dist: bionic
if: branch = master
- python: 3.7
dist: xenial
if: branch = master
- python: 3.7
dist: bionic
if: branch = master
- stage: ARM64
python: 3.6
arch: arm64
dist: xenial
if: branch = master
- python: 3.6
arch: arm64
dist: bionic
if: branch = master
- python: 3.7
arch: arm64
dist: xenial
if: branch = master
- python: 3.7
arch: arm64
dist: bionic
if: branch = master
- stage: PyPi
python: 3.6
dist: xenial
if: tag IS present
before_install:
- pip install twine
- pip install --upgrade setuptools wheel
script:
- python setup.py sdist bdist_wheel
- python -m twine upload dist/* -u "${PYPI_USERNAME}" -p "${PYPI_PASSWORD}"
script:
- coverage run -m pytest -v tests.py
- coverage xml
- coverage report
- flake8 roboglia --statistics --count