do not run tests, except flake8, on pull requests

This commit is contained in:
Andrey Yantsen 2018-09-14 23:45:53 +01:00
parent 4e2fa8254b
commit a774925f8c

View file

@ -1,9 +1,11 @@
language: python language: python
stages: stages:
- test - syntax
- name: test
if: type != pull_request
- name: deploy - name: deploy
if: tag IS present if: tag = present
sudo: required sudo: required
services: services:
@ -43,11 +45,8 @@ after_script:
jobs: jobs:
include: include:
- python: 3.6 - stage: syntax
env: python: 3.6
- PLEX_CONTAINER_TAG=1.3.2.3112-1751929
- TEST_ACCOUNT_ONCE=1
- python: 3.6
name: "Flake8" name: "Flake8"
install: install:
- pip install -r requirements_dev.txt - pip install -r requirements_dev.txt
@ -56,6 +55,11 @@ jobs:
after_script: true after_script: true
env: env:
- PLEX_CONTAINER_TAG=latest - PLEX_CONTAINER_TAG=latest
- stage: test
python: 3.6
env:
- PLEX_CONTAINER_TAG=1.3.2.3112-1751929
- TEST_ACCOUNT_ONCE=1
- stage: deploy - stage: deploy
name: "Deploy to PyPi" name: "Deploy to PyPi"
python: 3.6 python: 3.6