Skip to content

Commit a774925

Browse files
do not run tests, except flake8, on pull requests
1 parent 4e2fa82 commit a774925

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.travis.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
language: python
22

33
stages:
4-
- test
4+
- syntax
5+
- name: test
6+
if: type != pull_request
57
- name: deploy
6-
if: tag IS present
8+
if: tag = present
79

810
sudo: required
911
services:
@@ -43,11 +45,8 @@ after_script:
4345

4446
jobs:
4547
include:
46-
- python: 3.6
47-
env:
48-
- PLEX_CONTAINER_TAG=1.3.2.3112-1751929
49-
- TEST_ACCOUNT_ONCE=1
50-
- python: 3.6
48+
- stage: syntax
49+
python: 3.6
5150
name: "Flake8"
5251
install:
5352
- pip install -r requirements_dev.txt
@@ -56,6 +55,11 @@ jobs:
5655
after_script: true
5756
env:
5857
- PLEX_CONTAINER_TAG=latest
58+
- stage: test
59+
python: 3.6
60+
env:
61+
- PLEX_CONTAINER_TAG=1.3.2.3112-1751929
62+
- TEST_ACCOUNT_ONCE=1
5963
- stage: deploy
6064
name: "Deploy to PyPi"
6165
python: 3.6

0 commit comments

Comments
 (0)