Skip to content

Commit da11a4f

Browse files
committed
Added stages on Travis
1 parent 0c42e19 commit da11a4f

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

.travis.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,17 @@ script:
2727
after_success:
2828
- coveralls
2929

30-
deploy:
31-
provider: pypi
32-
user: roll
33-
distributions: sdist bdist_wheel
34-
skip_cleanup: true
35-
on:
36-
tags: true
37-
password:
38-
secure: WofAaa4zh8wXQWLjfm8w0IxxGZUCgMRBsqhUoUJLLvMraGNUMV9hHp9DS7XfCGvlrIUQXHpTvgM1t7pUIJRE/PqTQR8FOocqN+ZmH8BqDDXsIoyQexDUtWDDbFXNaKJ4D2efIdoqWwDc9do2zt+EWRkt4xQcnbm7O6GUXlxUyTI=
30+
jobs:
31+
include:
32+
- stage: release
33+
if: tag IS present
34+
script: echo "Releasing the package..."
35+
python: 3.8
36+
deploy:
37+
provider: pypi
38+
user: roll
39+
on: master
40+
distributions: sdist bdist_wheel
41+
skip_cleanup: true
42+
password:
43+
secure: WofAaa4zh8wXQWLjfm8w0IxxGZUCgMRBsqhUoUJLLvMraGNUMV9hHp9DS7XfCGvlrIUQXHpTvgM1t7pUIJRE/PqTQR8FOocqN+ZmH8BqDDXsIoyQexDUtWDDbFXNaKJ4D2efIdoqWwDc9do2zt+EWRkt4xQcnbm7O6GUXlxUyTI=

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ readme:
2424

2525
release:
2626
git checkout master && git pull origin && git fetch -p && git diff
27-
@echo "Continuing in 10 seconds. Press <CTRL+C> to abort\n" && sleep 10
27+
@echo "\nContinuing in 10 seconds. Press <CTRL+C> to abort\n" && sleep 10
2828
@git log --pretty=format:"%C(yellow)%h%Creset %s%Cgreen%d" --reverse -20
29-
@echo "\nReleasing v$(VERSION) in 10 seconds. Press <CTRL+C> to abort" && sleep 10
29+
@echo "\nReleasing v$(VERSION) in 10 seconds. Press <CTRL+C> to abort\n" && sleep 10
3030
git commit -a -m 'v$(VERSION)' && git tag -a v$(VERSION) -m 'v$(VERSION)'
3131
git push --follow-tags
3232

0 commit comments

Comments
 (0)