]> git.proxmox.com Git - mirror_acme.sh.git/blob - .travis.yml
fix ci
[mirror_acme.sh.git] / .travis.yml
1 language: shell
2 sudo: required
3
4 os:
5 - linux
6 - osx
7
8 env:
9 global:
10 - SHFMT_URL=https://github.com/mvdan/sh/releases/download/v0.4.0/shfmt_v0.4.0_linux_amd64
11
12 addons:
13 apt:
14 sources:
15 - debian-sid # Grab shellcheck from the Debian repo (o_O)
16 packages:
17 - shellcheck
18
19 before_install:
20 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then brew update ; fi
21 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install shellcheck; fi
22
23 script:
24 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then then curl -sSL $SHFMT_URL -o ~/shfmt ; fi
25 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then chmod +x ~/shfmt ; fi
26 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ~/shfmt -l -w -i 2 . ; fi
27 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git diff --exit-code && echo "shfmt OK" ; fi
28 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck -V ; fi
29 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck -e SC2021,SC2126,SC2034 **/*.sh && echo "shellcheck OK" ; fi
30 - cd ..
31 - git clone https://github.com/Neilpang/acmetest.git && cp -r acme.sh acmetest/ && cd acmetest
32 - sudo ./letest.sh
33
34
35 matrix:
36 fast_finish: true
37
38