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.

37 lines
1.3 KiB

8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
8 years ago
8 years ago
  1. language: shell
  2. dist: trusty
  3. os:
  4. - linux
  5. - osx
  6. services:
  7. - docker
  8. env:
  9. global:
  10. - SHFMT_URL=https://github.com/mvdan/sh/releases/download/v0.4.0/shfmt_v0.4.0_linux_amd64
  11. install:
  12. - if [ "$TRAVIS_OS_NAME" = 'osx' ]; then
  13. brew update && brew install socat;
  14. export PATH="/usr/local/opt/openssl@1.1/bin:$PATH" ;
  15. fi
  16. script:
  17. - echo "NGROK_TOKEN=$(echo "$NGROK_TOKEN" | wc -c)"
  18. - command -V openssl && openssl version
  19. - if [ "$TRAVIS_OS_NAME" = "linux" ]; then curl -sSL $SHFMT_URL -o ~/shfmt && chmod +x ~/shfmt && ~/shfmt -l -w -i 2 . ; fi
  20. - if [ "$TRAVIS_OS_NAME" = "linux" ]; then git diff --exit-code && echo "shfmt OK" ; fi
  21. - if [ "$TRAVIS_OS_NAME" = "linux" ]; then shellcheck -V ; fi
  22. - if [ "$TRAVIS_OS_NAME" = "linux" ]; then shellcheck -e SC2181 **/*.sh && echo "shellcheck OK" ; fi
  23. - cd ..
  24. - git clone --depth 1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/ && cd acmetest
  25. - if [ "$TRAVIS_OS_NAME" = "linux" -a "$NGROK_TOKEN" ]; then sudo TEST_LOCAL="$TEST_LOCAL" NGROK_TOKEN="$NGROK_TOKEN" ./rundocker.sh testplat ubuntu:latest ; fi
  26. - if [ "$TRAVIS_OS_NAME" = "osx" -a "$NGROK_TOKEN" ]; then sudo TEST_LOCAL="$TEST_LOCAL" NGROK_TOKEN="$NGROK_TOKEN" ACME_OPENSSL_BIN="$ACME_OPENSSL_BIN" ./letest.sh ; fi
  27. matrix:
  28. fast_finish: true