pash/.travis.yml

19 lines
654 B
YAML
Raw Normal View History

2019-02-25 00:25:20 -06:00
language: bash
sudo: required
os:
- linux
install:
# Install a custom version of shellcheck instead of Travis CI's default
- scversion="latest" # or "v0.4.7", or "latest"
- wget "https://storage.googleapis.com/shellcheck/shellcheck-${scversion}.linux.x86_64.tar.xz"
- tar --xz -xvf "shellcheck-${scversion}.linux.x86_64.tar.xz"
- shellcheck() { "shellcheck-${scversion}/shellcheck" "$@"; }
script:
2019-11-25 15:30:07 -06:00
- shellcheck pash pash-posix -e SC2244 -e SC1090 -e SC1091
2019-02-25 00:25:20 -06:00
# Check for lines longer than 80 chars.
- if grep '.\{81\}' pash; then (exit 1); else (exit 0); fi
2019-11-25 15:30:07 -06:00
- if grep '.\{81\}' pash-posix; then (exit 1); else (exit 0); fi