Skip to content

Commit a77ad73

Browse files
feat(deploy): enable semantic release
1 parent 49bece9 commit a77ad73

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ cache: pip
66

77
matrix:
88
include:
9+
- python: 3.5
10+
- python: 3.6
911
- python: 3.7
12+
- python: 3.8
1013
before_script:
1114
- >-
1215
[ -z "${TRAVIS_TAG}" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]
@@ -25,3 +28,28 @@ install:
2528
- pip install tox-travis
2629

2730
script: tox
31+
32+
before_deploy:
33+
- pip install bump2version
34+
- nvm install 12
35+
- npm install @semantic-release/changelog
36+
- npm install @semantic-release/exec
37+
- npm install @semantic-release/git
38+
- npm install @semantic-release/github
39+
40+
deploy:
41+
- provider: script
42+
script: npx semantic-release
43+
skip_cleanup: true
44+
on:
45+
python: '3.5'
46+
branch: master
47+
48+
- provider: pypi
49+
user: __token__
50+
password: $PYPI_TOKEN
51+
repository: https://upload.pypi.org/legacy
52+
skip_cleanup: true
53+
on:
54+
python: '3.5'
55+
tags: true

0 commit comments

Comments
 (0)