Merge pull request #4 from netmanagers/refactor-config-add-service
[arvados-formula.git] / .travis.yml
index 3ced9e01beecb08bf1c67efed46e3bfeb8a50090..83b41c1c26db17003e079bf7c69b5ca30ccf86a6 100644 (file)
@@ -62,6 +62,20 @@ jobs:
         - pre-commit run --all-files --verbose
         - pre-commit run --hook-stage manual --verbose commitlint-travis
 
         - pre-commit run --all-files --verbose
         - pre-commit run --hook-stage manual --verbose commitlint-travis
 
+    # Run `pre-commit` linters in a single job
+    - language: 'python'
+      env: 'Lint_pre-commit'
+      name: 'Lint: pre-commit'
+      before_install: 'skip'
+      cache:
+        directories:
+          - $HOME/.cache/pre-commit
+      script:
+        # Install and run `pre-commit`
+        - pip install pre-commit==2.7.1
+        - pre-commit run --all-files --color always --verbose
+        - pre-commit run --color always --hook-stage manual --verbose commitlint-travis
+
     ## Define the rest of the matrix based on Kitchen testing
     # Make sure the instances listed below match up with
     # the `platforms` defined in `kitchen.yml`
     ## Define the rest of the matrix based on Kitchen testing
     # Make sure the instances listed below match up with
     # the `platforms` defined in `kitchen.yml`