summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: de4763618f5acf037b42f08463333221ac5b4a74 (plain)
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
dist: xenial   # required for Python >= 3.7
language: python
python: "3.7"
git:
  depth: false
before_install:
  - pip install poetry
install:
  # we run `poetry version` here to appease poetry about '0.0.0-source'
  - poetry version
  - poetry install
script:
  - poetry run python --version
  - poetry run behave
before_deploy:
  - poetry config http-basic.pypi $PYPI_USER $PYPI_PASS
  - poetry version $TRAVIS_TAG
  - poetry build
deploy:
  - provider: script
    script: echo "fake deploy"
    skip_cleanup: true
    on:
      branch: master
      tags: true
after_deploy:
  - git config --global user.email "jrnl.bot@gmail.com"
  - git config --global user.name "Jrnl Bot"
  - git add pyproject.toml
  - git commit -m "Incrementing version to ${TRAVIS_TAG}"
  - git push https://${GITHUB_TOKEN}@github.com/jrnl-org/jrnl.git master