Skip to content
Snippets Groups Projects
Commit 7f5cc24a authored by nimrod's avatar nimrod
Browse files

- Use newer version of shell pre-commit hooks.

- Use shellcheck from cabal instead from the Ubuntu package repo (which
has a newer version that supports --external-sources).
parent 41d8ccea
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
- id: check-yaml - id: check-yaml
- id: check-merge-conflict - id: check-merge-conflict
- repo: https://www.shore.co.il/git/shell-pre-commit/ - repo: https://www.shore.co.il/git/shell-pre-commit/
sha: v0.5.3 sha: v0.5.4
hooks: hooks:
- id: shell-lint - id: shell-lint
files: shell-lint files: shell-lint
......
...@@ -3,24 +3,30 @@ language: python ...@@ -3,24 +3,30 @@ language: python
python: "3.5" python: "3.5"
dist: trusty dist: trusty
sudo: false sudo: false
group: beta
cache: cache:
- pip - pip
- directories: - directories:
- $HOME/.pre-commit - $HOME/.pre-commit
- $HOME/.cabal
- $HOME/.ghc
addons: addons:
apt: apt:
sources:
- sourceline: 'deb http://archive.ubuntu.com/ubuntu trusty-backports main universe multiverse'
packages: packages:
- shellcheck - cabal-install
- ghc
env:
PATH: $PATH:$HOME/.cabal/bin
install: install:
- pip install pre_commit - cabal update && cabal install shellcheck
- pip install pre_commit | cat
script: script:
- pre-commit run --all-files - pre-commit run --all-files
notifications: notifications:
on_failure: never
email: false email: false
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment