diff --git a/.travis.yml b/.travis.yml index ee7dd68f..a75813f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,23 @@ language: python + python: - "2.7" - "3.6" -env: - - TRAVIS=true - -script: pytest +install: + - pip install pytest pytest-cov -notifications: - email: never +script: + - python -m pytest -after_success: - - git config --global user.name "ladybugbot" - - git config --global user.email "release@ladybug.tools" - - pip install python-semantic-release - - semantic-release publish +jobs: + include: + - stage: deploy + if: branch = master AND (NOT type IN (pull_request)) + python: "3.6" + env: TRAVIS=true + script: + - git config --global user.name "ladybugbot" + - git config --global user.email "release@ladybug.tools" + - pip install python-semantic-release + - semantic-release publish