diff --git a/.travis.yml b/.travis.yml index 12d5e15e..68624bc8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,19 +12,39 @@ os: linux dist: xenial +cache: + directories: + - "${HOME}/.cache/pip" + - "${HOME}/.cache/pre-commit" + - "${HOME}/.pre-commit-venv" + - "${HOME}/bin" + - /usr/lib/python3.8 + 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 name: Ubuntu 16.04 - + - <<: *native_job name: Ubuntu 18.04 dist: bionic - + - <<: *native_job name: MacOS xcode9.4 os: osx osx_image: xcode9.4 # Default xcode on Travis. - + - <<: *native_job name: MacOS xcode11.5 os: osx diff --git a/test/lint-requirements.txt b/test/lint-requirements.txt new file mode 100644 index 00000000..72224bf8 --- /dev/null +++ b/test/lint-requirements.txt @@ -0,0 +1 @@ +pre-commit==2.3.0