[#757] Clean up travis yaml file for readability

This commit is contained in:
Jonathan Wren 2019-11-29 15:06:13 -08:00
parent 8004ef59af
commit 1b9748e5ce

View file

@ -1,7 +1,28 @@
dist: xenial # required for Python >= 3.7 dist: xenial # required for Python >= 3.7
os: linux os: linux
language: python language: python
cache: pip
git:
depth: false
before_install:
- date
- pip install poetry~=0.12.17
install:
- poetry install
- poetry run python --version
script:
- poetry run behave
jobs: jobs:
allow_failures:
- python: 3.8
- python: nightly
- os: windows
include: include:
- stage: Test - stage: Test
- name: Python 3.6 on Linux - name: Python 3.6 on Linux
@ -32,6 +53,7 @@ jobs:
- pip install poetry~=0.12.17 - pip install poetry~=0.12.17
env: env:
- PATH=/c/Python37:/c/Python37/Scripts:$PATH - PATH=/c/Python37:/c/Python37/Scripts:$PATH
- stage: Deploy - stage: Deploy
if: branch = master AND tag IS present if: branch = master AND tag IS present
before_deploy: before_deploy:
@ -48,19 +70,4 @@ jobs:
- git add pyproject.toml - git add pyproject.toml
- git commit -m "Incrementing version to ${TRAVIS_TAG}" - git commit -m "Incrementing version to ${TRAVIS_TAG}"
- git push https://${GITHUB_TOKEN}@github.com/jrnl-org/jrnl.git master - git push https://${GITHUB_TOKEN}@github.com/jrnl-org/jrnl.git master
allow_failures:
- python: 3.8
- python: nightly
- os: windows
git:
depth: false
cache: pip
before_install:
- date
- pip install poetry~=0.12.17
install:
- poetry install
- poetry run python --version
script:
- poetry run behave