forked from mintel/pytest-localstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (63 loc) · 2.17 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
dist: xenial
services:
- docker
language: python
python:
- '3.6'
- '3.7'
- '3.8'
- '3.9-dev'
matrix:
fast_finish: true
allow_failures:
- python: 3.9-dev
stages:
- lint
- test
- deploy
before_install:
- pip install --upgrade pipenv
# Numpy isn't needed by pytest-localstack, but it comes preinstalled in Travis.
# `pipenv check` complains if numpy<=1.16.0.
- pip install 'numpy>1.16.0'
- pipenv --version
install:
# Do this instead of `make env` so we always test with latest versions
# of packages.
- pipenv install --dev --pre codecov pytest-cov pytest-xdist
script:
- pytest --version
- pytest tests/unit -ra --cov=pytest_localstack/ --cov-config .coveragerc -n auto
- pytest tests/integration -ra --cov=pytest_localstack/ --cov-config .coveragerc --cov-append -n auto
- pytest tests/functional -ra --cov=pytest_localstack/ --cov-config .coveragerc --cov-append
after_success:
- codecov
jobs:
include:
- stage: lint
python: 3.8
services: []
install: make env
script:
- make lint
- make docs
after_success: []
deploy: []
- stage: deploy
if: tag =~ ^v
python: '3.8'
services: []
before_install: []
install: []
script: 'true'
after_success: []
deploy:
provider: pypi
user: jdoepke_mintel
password:
secure: fMzAGIp0OJQI5GdeiN0u6g2uTUvlHmGskWfvvaNF+xM4/J3o33LWqyRjRa7m07Mv+2XtuUaFyh5s/wcHlro4Ianx7c3hRa6gx+MxB4akgj8H0xgFrKduZfOcruNGcz0qOwk9PsYSk+KBdfESy0SHotoOZdYT4rB3i12PJgCrO3Dn466qbeNYdWEO+1nZMkGjkGPmGTgann9d2HbRZP1Eu/0ehIU02Gvs0uPzNpq2UBtE6XpAPu7O/yq7l02m21hj1GuMJq86wNHkVi9LGvSvDBIF+iZSvrRSM6/+DYzCq5UKnQy1gPHUVWkZXWcuDrJW5ODZzlG0JHbagLdl4gQKU/0giMHCo9g3f6X7jeFUIAYMKEmwsU6qOO31KiAat7mWMI07peD4SCexQxksVYcUeuriF8A+AkG8qDaeJKdX3wDpOMpi4aWYt2KvIUEyPiHeGruv5y1NIwTQrcpkOxYcZ4/nwrMTph0vvAJsgOCg6NueIQLq2ungeBbXRarg9afU16j5ODWWDNLvJSVE02VgAkKc8Gw7EvtyWRmsr/aV86UXHZ85VImDKvIA1pdJAypa+PjdsVNnfDtcfsDnkROu18dJCBy0tXNuHtsHOjESHrODHBfGh/Wr4/qVO4CQVloB+NIIZNLv9QvbFQV5jfiyLALCIGCw3mujp3y5kJBE2zI=
distributions: 'sdist bdist_wheel'
skip_existing: true
on:
tags: true
all_branches: true