ci:split checks into py & go jobs

This commit is contained in:
Casper da Costa-Luis
2020-01-30 23:37:53 +00:00
parent cf257f9617
commit 605c4af9c6
3 changed files with 22 additions and 5 deletions
+9 -2
View File
@@ -24,14 +24,21 @@ stages:
jobs:
include:
# patch formatting checks
- name: "Check patch formatting"
- name: "Python formatting"
stage: check
os: linux
language: python
python: 3.7
before_install:
install:
script: ./scripts/ci/check_patch.sh
- name: "Script formatting"
os: linux
language: go
go: 1.13
before_install:
install:
script: ./scripts/ci/check_patch.sh
script: ./scripts/ci/check_scripts.sh
# test jobs
- name: "3.7 on Windows"
stage: test
+6 -3
View File
@@ -3,10 +3,13 @@
set -x
set -e
python3 -m pip install --user Pygments collective.checkdocs pre-commit
pip install Pygments collective.checkdocs pre-commit
# stop the build if there are any readme formatting errors
python3 setup.py checkdocs
python setup.py checkdocs
# stop the build if there are any formatting errors
GO111MODULE=on pre-commit run --all-files
err=0
pre-commit run --all-files black || err=1
pre-commit run --all-files flake8 || err=1
exit $err
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
set -x
set -e
# stop the build if there are any formatting errors
GO111MODULE=on pre-commit run --all-files shfmt