ci: Add pre-commit run and remove trailling spaces
parent
5045867b2c
commit
b14a38fec9
20
.travis.yml
20
.travis.yml
|
|
@ -12,7 +12,27 @@ os: linux
|
||||||
|
|
||||||
dist: xenial
|
dist: xenial
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- "${HOME}/.cache/pip"
|
||||||
|
- "${HOME}/.cache/pre-commit"
|
||||||
|
- "${HOME}/.pre-commit-venv"
|
||||||
|
- "${HOME}/bin"
|
||||||
|
- /usr/lib/python3.8
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
include:
|
||||||
|
- language: go
|
||||||
|
go: "1.14"
|
||||||
|
name: Ubuntu 18.04
|
||||||
|
dist: bionic
|
||||||
|
sudo: required
|
||||||
|
before_script:
|
||||||
|
GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt;
|
||||||
|
curl https://pre-commit.com/install-local.py | python3 -
|
||||||
|
script:
|
||||||
|
SKIP=shellcheck pre-commit run --all-files;
|
||||||
|
|
||||||
- <<: *native_job
|
- <<: *native_job
|
||||||
name: Ubuntu 16.04
|
name: Ubuntu 16.04
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
pre-commit==2.3.0
|
||||||
Loading…
Reference in New Issue