]> git.proxmox.com Git - mirror_acme.sh.git/blob - .travis.yml
Merge pull request #2802 from luoch/patch-1
[mirror_acme.sh.git] / .travis.yml
1 language: shell
2 sudo: required
3 dist: trusty
4
5 os:
6 - linux
7 - osx
8
9 services:
10 - docker
11
12 env:
13 global:
14 - SHFMT_URL=https://github.com/mvdan/sh/releases/download/v0.4.0/shfmt_v0.4.0_linux_amd64
15
16
17 install:
18 - if [ "$TRAVIS_OS_NAME" = 'osx' ]; then
19 brew update && brew install socat;
20 export PATH="/usr/local/opt/openssl@1.1/bin:$PATH" ;
21 fi
22
23 script:
24 - echo "NGROK_TOKEN=$(echo "$NGROK_TOKEN" | wc -c)"
25 - command -V openssl && openssl version
26 - if [ "$TRAVIS_OS_NAME" = "linux" ]; then curl -sSL $SHFMT_URL -o ~/shfmt && chmod +x ~/shfmt && ~/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 SC2181 **/*.sh && echo "shellcheck OK" ; fi
30 - cd ..
31 - git clone --depth 1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/ && cd acmetest
32 - if [ "$TRAVIS_OS_NAME" = "linux" -a "$NGROK_TOKEN" ]; then sudo TEST_LOCAL="$TEST_LOCAL" NGROK_TOKEN="$NGROK_TOKEN" ./rundocker.sh testplat ubuntu:latest ; fi
33 - 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
34
35 matrix:
36 fast_finish: true
37
38