diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..f1a6518b --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,16 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.1.0 + hooks: + - id: check-json + - id: check-xml + - id: check-merge-conflict + - id: fix-byte-order-marker + - id: mixed-line-ending + args: ['--fix=lf'] + - id: end-of-file-fixer + - repo: https://github.com/sirosen/check-jsonschema + rev: 0.13.0 + hooks: + - id: check-travis + - id: check-github-workflows diff --git a/.travis.yml b/.travis.yml index 66268894..68dc5ed1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ ---- +import: + - source: Alfresco/alfresco-build-tools:.travis.pre-commit.yml@v1.1.9 + language: java jdk: openjdk11 os: linux