Browse Source

Move python linting to separate job

rafalp 6 years ago
parent
commit
8a4f56b973
1 changed files with 9 additions and 3 deletions
  1. 9 3
      .travis.yml

+ 9 - 3
.travis.yml

@@ -7,11 +7,17 @@ addons:
 install:
 install:
   - pip install -U pip setuptools
   - pip install -U pip setuptools
   - python setup.py install
   - python setup.py install
-  - pip install coveralls pytest-cov black
+  - pip install coveralls pytest-cov
 before_script:
 before_script:
   - psql -c "create database travis_ci_test;" -U postgres
   - psql -c "create database travis_ci_test;" -U postgres
 script:
 script:
   - pytest --cov=misago
   - pytest --cov=misago
-  - black --check devproject misago
 after_success:
 after_success:
-  - coveralls
+  - coveralls
+jobs:
+  include:
+    - name: "lint"
+      python: 3.6
+      script:
+        - pip install black
+        - black --check devproject misago