From 1b9748e5ceb6dabc62a8bd05e094143c352bdce2 Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Fri, 29 Nov 2019 15:06:13 -0800 Subject: [PATCH] [#757] Clean up travis yaml file for readability --- .travis.yml | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index 501cbd5c..22b69409 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,28 @@ dist: xenial # required for Python >= 3.7 os: linux 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: + allow_failures: + - python: 3.8 + - python: nightly + - os: windows + include: - stage: Test - name: Python 3.6 on Linux @@ -32,6 +53,7 @@ jobs: - pip install poetry~=0.12.17 env: - PATH=/c/Python37:/c/Python37/Scripts:$PATH + - stage: Deploy if: branch = master AND tag IS present before_deploy: @@ -48,19 +70,4 @@ jobs: - git add pyproject.toml - git commit -m "Incrementing version to ${TRAVIS_TAG}" - 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