You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

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