-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path.travis.yml
More file actions
39 lines (34 loc) · 796 Bytes
/
.travis.yml
File metadata and controls
39 lines (34 loc) · 796 Bytes
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
language: python
python:
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
script:
- pytest --cov=./
after_success:
- bash <(curl -s https://codecov.io/bash)
before_install:
- pip install --upgrade pip
- pip install poetry
install:
- poetry install -v
jobs:
include:
- stage: build
python: "3.7"
script: echo "Starting Pypi build"
before_deploy:
# User and password environment variables are set as hidden variables through
# the web interface in the project settings.
- poetry config http-basic.pypi $PYPI_USERNAME $PYPI_PASSWORD
- poetry build
deploy:
provider: script
script: poetry publish
skip_cleanup: true
on:
tags: true
branch: master
skip_existing: true