-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (60 loc) · 2.27 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
# See dev_guide.py for more documentation.
# Inspired by https://github.com/python-poetry/poetry/issues/366
# Build matrix. Its "expansion" (outer prod) defines the default/test stage
language: python
dist: xenial
python:
- 3.9
- 3.8
- 3.7 # sometimes troublesome with `poetry install`
before_install: # Useful for all jobs. Also see {before,after}_script
# Get poetry
- python --version
- python3 --version
- pip3 install -U pip
- pip3 install poetry
- travis_retry poetry install
install: skip # overwrite default (looks for requirements file)
script: poetry run pytest
stages:
- lint
- test
- coverage
- deploy
# Explicitly included (i.e. particular) jobs (1 per dash).
# If the stage of a job is not def'd, the above stage is used,
# the default being the "test" stage. **(Only) the 1st value** of a
# matrix dimension (e.g. "python") is used, unless overwritten.
jobs:
include:
- stage: lint
#script: poetry run flakehell
script: poetry run pre-commit run -a
- stage: coverage
install: pip3 install coveralls
after_success: coveralls || echo "failed"
- stage: test
name: "Python 3.7.4 on macOS"
os: osx
osx_image: xcode11.2
language: shell
- stage: deploy
script: skip
before_deploy:
- poetry build
deploy:
provider: pypi
username: __token__
password:
secure: qUubHfUoTsaNXp0eb7IdFvikQkyNzhxx3QAQQBgOnSDcYB8t8MWOb2OYnZ1ZCdhrBP2JkMaf+wPxSqroDyOCgrBxsB2CFvlWhyuqfvU/E5YK+hiCJPri+N8UBrM+8UFkuHWQCJn+8wcshtmNZx2gGLTlVMBFTuSCvrMY86XbfcGNq4b78mPFq9F0qTqs5vlUfxVGRYfskeYmo1ZjF1Su3E0q298DJ/aSagKV/t4OgTsCfAUOgPEtdX7/3haO4vuUwJ0xgZO6ijzYv7exRCoxIkQr5fwnfamudLgtFrcVZoIe5SxdrPNs5iKoxx0h4wjxxq7EHrBqtp1mBQpU4uu8mrYRb5atulgcUljksvj8zOz8D3MJIqFVx3RZGI1cxw3WLXi877mMm5UWQxjynrRz85nOpYkvJ7Sbg07XCW8/1imlQ0/fU3s0g8CDucDrSYcgZTyMvPCGmFHTSeL1QH52drYKgCjB5OYfuijYfZBuBs8Yh0WpRhyE0gTikBTUNI/7QzkK7mflSA5dl3YiGUCprWChb8/KP1RjWE6x9DPhAZVNcVr4M5FVAdOFt5SR6iQX8VOmV1/hrdVHe4py4yjhKBd4Pd9b51gp/j93MvDQeKiJ9D1r8AQb+Onwd3iukewr9+Rxix8PuTTVNdAxidStNwTnA9MAFn4v3DpeHzeHWvQ=
distributions: "sdist bdist_wheel"
skip_cleanup: true
on:
tags: true
allow_failures:
- os: osx
fast_finish: true
cache:
pip: true
directories:
- "$HOME/.cache/pre-commit"