]>
Commit | Line | Data |
---|---|---|
058e5d5f | 1 | language: shell |
2 | sudo: required | |
529cbc03 | 3 | dist: trusty |
058e5d5f | 4 | |
5 | os: | |
6 | - linux | |
7 | - osx | |
8 | ||
529cbc03 | 9 | services: |
10 | - docker | |
11 | ||
058e5d5f | 12 | env: |
13 | global: | |
14 | - SHFMT_URL=https://github.com/mvdan/sh/releases/download/v0.4.0/shfmt_v0.4.0_linux_amd64 | |
15 | ||
058e5d5f | 16 | |
17 | install: | |
2f4b84c0 | 18 | - if [ "$TRAVIS_OS_NAME" = 'osx' ]; then |
9eeebb14 | 19 | brew update && brew install socat; |
20 | export PATH="/usr/local/opt/openssl@1.1/bin:$PATH" ; | |
058e5d5f | 21 | fi |
9eeebb14 | 22 | |
058e5d5f | 23 | script: |
058e5d5f | 24 | - echo "NGROK_TOKEN=$(echo "$NGROK_TOKEN" | wc -c)" |
2f4b84c0 | 25 | - command -V openssl && openssl version |
f0a87da3 | 26 | - if [ "$TRAVIS_OS_NAME" = "linux" ]; then curl -sSL $SHFMT_URL -o ~/shfmt && chmod +x ~/shfmt && ~/shfmt -l -w -i 2 . ; fi |
2f4b84c0 BB |
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 | |
13a8c309 | 29 | - if [ "$TRAVIS_OS_NAME" = "linux" ]; then shellcheck -e SC2181 **/*.sh && echo "shellcheck OK" ; fi |
058e5d5f | 30 | - cd .. |
d795fac3 | 31 | - git clone --depth 1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/ && cd acmetest |
529cbc03 | 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 |
4fd63f4e | 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 |
058e5d5f | 34 | |
058e5d5f | 35 | matrix: |
36 | fast_finish: true | |
ac9f6e3a PDH |
37 | |
38 |