]> git.proxmox.com Git - mirror_acme.sh.git/blob - .travis.yml
fix CI
[mirror_acme.sh.git] / .travis.yml
1 language: shell
2
3 env:
4 global:
5 - SHFMT_URL=https://github.com/mvdan/sh/releases/download/v0.4.0/shfmt_v0.4.0_linux_amd64
6
7 addons:
8 apt:
9 sources:
10 - debian-sid # Grab shellcheck from the Debian repo (o_O)
11 packages:
12 - shellcheck
13
14 script:
15 - curl -sSL $SHFMT_URL -o ~/shfmt
16 - chmod +x ~/shfmt
17 - shellcheck -V
18 - shellcheck -e SC2021,SC2126,SC2034 **/*.sh && echo "shellcheck OK" || exit 1
19 - ~/shfmt -l -w -i 2 . && echo "shfmt OK" || git diff --exit-code || (echo "Run shfmt to fix the formatting issues" && exit 1)
20
21