summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Wren <jonathan@nowandwren.com>2019-11-09 14:17:13 -0800
committerJonathan Wren <jonathan@nowandwren.com>2020-04-10 11:51:55 -0700
commit851a367569ce66ec31c4d111c196318fc93df821 (patch)
treeb86de881face705c622c278a553c01754882b5d7
parentc86365991624ec9e923e771e3023255eb6d5f889 (diff)
[#715] Make bot that will auto-increment version in code after deploy
-rw-r--r--.travis.yml10
1 files changed, 9 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index fea48f50..1715093a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,8 @@
dist: xenial # required for Python >= 3.7
language: python
python: "3.7"
+git:
+ depth: false
before_install:
- pip install poetry
install:
@@ -11,7 +13,6 @@ script:
- poetry run python --version
- poetry run behave
before_deploy:
- - pip install poetry
- poetry config http-basic.pypi $PYPI_USER $PYPI_PASS
- poetry version $TRAVIS_TAG
- poetry build
@@ -22,3 +23,10 @@ deploy:
on:
branch: master
tags: true
+after_deploy:
+ - git config --global user.email "jrnl.bot@gmail.com"
+ - git config --global user.name "Jrnl Bot"
+ - git checkout master
+ - git add pyproject.toml
+ - git commit -m "Incrementing version to ${TRAVIS_TAG}"
+ - git push https://${GITHUB_TOKEN}@github.com/jrnl-org/jrnl.git master