mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-26 23:09:35 +01:00
ci:split checks into py & go jobs
This commit is contained in:
+9
-2
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Executable
+7
@@ -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
|
||||
Reference in New Issue
Block a user