-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
49 lines (49 loc) · 4.69 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
dist: xenial
language: python
python:
- '3.6'
- '3.7'
install:
# workaround for backward compatibility to Poetry: https://github.com/sdispater/poetry/issues/1049
- pip install --upgrade pip==18.1
- pip install poetry codacy-coverage
- poetry install
script:
- make -f Makefile.ci
after_success:
- python-codacy-coverage -r coverage.xml
before_deploy:
- poetry config http-basic.pypi thilp "$PYPI_PASSWORD"
# Set up git user and tag this commit
- git config --local user.name "$GITHUB_USERNAME"
- git config --local user.email "$GITHUB_EMAIL"
- export TRAVIS_TAG=v$(poetry run transformer --version)
- git tag --force $TRAVIS_TAG
deploy:
# Main releases: tags set on master
- provider: script
script: make clean && poetry publish --build
on:
branch: master
# We don't want to publish a release twice (once for each supported
# python version), but we also cannot use skip_existing because
# deployment should fail if not at least one release is published to PyPI
# successfully. This prevents the case where someone forgot to update the
# version number in a PR.
python: '3.7'
- provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: dist/*
skip_cleanup: true
on:
tags: true
branch: master
python: '3.7'
env:
global:
- secure: duPuFLBO/bAeEnBHEQ7EHX07rLa7RO69PKH3+vTBmFVIqpZEh+X5psXTHClpFAT39AsUVvwKl5ZPwxunTOA13h6/b34M9WvArNOmMgrFvtsy2uqS9l/EJKMhhRpdL0h9Hk08Po1gJ7hEbOmFtadWtYXhge0z6bC4ykDCdKyO02sMNVceu0c+Q4j8mlV55iUjR0k9XYTRXHPyCZvhQRlWRu2SpFu+bS+i46ckdTtcLlHi0jDCAIc3od+j0ZT1CMSRdg0Bg81C9U7zCcPSpFk4AMdUjXw1h8k+7iFzzknyMDyVRi9pocPk8WXEN8i0OTGIsYCPWhgqcNP1o37xCXQj/7qPjvVYbF32vS9Ab+0RGyS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