From f6ed197cd30900ed9da99f7cc3f3282eb2de2d99 Mon Sep 17 00:00:00 2001 From: neilpang Date: Mon, 14 Nov 2016 22:11:05 +0800 Subject: [PATCH 1/8] run acmetest in CI --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 62feca32..46f0dff4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,10 @@ script: - shellcheck -V - shellcheck -e SC2021,SC2126,SC2034 **/*.sh && echo "shellcheck OK" - ~/shfmt -l -w -i 2 . && echo "shfmt OK" || git diff --exit-code || (echo "Run shfmt to fix the formatting issues" && false) + - cd .. + - curl -sSL https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -o ngrok-stable-linux-amd64.zip && unzip ngrok-stable-linux-amd64.zip && export NGROK_BIN="$(pwd)/ngrok" + - git clone https://github.com/Neilpang/acmetest.git && cp -r acme.sh acmetest/ && cd acmetest && ./letest.sh + matrix: fast_finish: true From b87503715004c8924d196ee017d33eeaf4f3a5eb Mon Sep 17 00:00:00 2001 From: neilpang Date: Tue, 15 Nov 2016 17:38:35 +0800 Subject: [PATCH 2/8] check NGROK_BIN --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 46f0dff4..991e4ed4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,7 @@ script: - ~/shfmt -l -w -i 2 . && echo "shfmt OK" || git diff --exit-code || (echo "Run shfmt to fix the formatting issues" && false) - cd .. - curl -sSL https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -o ngrok-stable-linux-amd64.zip && unzip ngrok-stable-linux-amd64.zip && export NGROK_BIN="$(pwd)/ngrok" + - $NGROK_BIN - git clone https://github.com/Neilpang/acmetest.git && cp -r acme.sh acmetest/ && cd acmetest && ./letest.sh From 15777732d3d4e595d6bb6e712c3381b1d84f1e7d Mon Sep 17 00:00:00 2001 From: neilpang Date: Tue, 15 Nov 2016 19:20:41 +0800 Subject: [PATCH 3/8] test ngrok --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 991e4ed4..9ec5405d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,7 @@ script: - cd .. - curl -sSL https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -o ngrok-stable-linux-amd64.zip && unzip ngrok-stable-linux-amd64.zip && export NGROK_BIN="$(pwd)/ngrok" - $NGROK_BIN + - $NGROK_BIN http 80 --log stdout --log-format logfmt --log-level debug - git clone https://github.com/Neilpang/acmetest.git && cp -r acme.sh acmetest/ && cd acmetest && ./letest.sh From a2801649b40a0f9e3716b525985f0e6e7bdfc85d Mon Sep 17 00:00:00 2001 From: neilpang Date: Tue, 15 Nov 2016 19:24:08 +0800 Subject: [PATCH 4/8] test ngrok --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 9ec5405d..62c86a29 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,7 @@ script: - cd .. - curl -sSL https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -o ngrok-stable-linux-amd64.zip && unzip ngrok-stable-linux-amd64.zip && export NGROK_BIN="$(pwd)/ngrok" - $NGROK_BIN + - $NGROK_BIN authtoken "$NGROK_TOKEN" - $NGROK_BIN http 80 --log stdout --log-format logfmt --log-level debug - git clone https://github.com/Neilpang/acmetest.git && cp -r acme.sh acmetest/ && cd acmetest && ./letest.sh From 1c02b85802f53f39bbf06f2cacc02f0e9ae9c020 Mon Sep 17 00:00:00 2001 From: neilpang Date: Tue, 15 Nov 2016 19:29:02 +0800 Subject: [PATCH 5/8] test ngrok --- .travis.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 62c86a29..3d368d7e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,8 +21,13 @@ script: - curl -sSL https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -o ngrok-stable-linux-amd64.zip && unzip ngrok-stable-linux-amd64.zip && export NGROK_BIN="$(pwd)/ngrok" - $NGROK_BIN - $NGROK_BIN authtoken "$NGROK_TOKEN" - - $NGROK_BIN http 80 --log stdout --log-format logfmt --log-level debug - - git clone https://github.com/Neilpang/acmetest.git && cp -r acme.sh acmetest/ && cd acmetest && ./letest.sh + - git clone https://github.com/Neilpang/acmetest.git && cp -r acme.sh acmetest/ && cd acmetest + - $NGROK_BIN http 80 --log stdout --log-format logfmt --log-level debug > ngrok.tmp & + - echo "===========================" + - cat ngrok.tmp + - echo ============================== + - grep -o 'Hostname:[a-z0-9]+.ngrok.io' ngrok.tmp + - ./letest.sh matrix: From 7f944c2c8b532eaec65e3452150a4be6f2a69173 Mon Sep 17 00:00:00 2001 From: neilpang Date: Tue, 15 Nov 2016 19:38:28 +0800 Subject: [PATCH 6/8] test ngrok --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 3d368d7e..0cc14b6a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,6 +23,7 @@ script: - $NGROK_BIN authtoken "$NGROK_TOKEN" - git clone https://github.com/Neilpang/acmetest.git && cp -r acme.sh acmetest/ && cd acmetest - $NGROK_BIN http 80 --log stdout --log-format logfmt --log-level debug > ngrok.tmp & + - sleep 5 - echo "===========================" - cat ngrok.tmp - echo ============================== From 09f1c58872f2b8fd297e1c3e6cd3d4807482e95f Mon Sep 17 00:00:00 2001 From: neilpang Date: Tue, 15 Nov 2016 19:45:04 +0800 Subject: [PATCH 7/8] test ngrok --- .travis.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0cc14b6a..fe615d82 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,15 +19,7 @@ script: - ~/shfmt -l -w -i 2 . && echo "shfmt OK" || git diff --exit-code || (echo "Run shfmt to fix the formatting issues" && false) - cd .. - curl -sSL https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -o ngrok-stable-linux-amd64.zip && unzip ngrok-stable-linux-amd64.zip && export NGROK_BIN="$(pwd)/ngrok" - - $NGROK_BIN - - $NGROK_BIN authtoken "$NGROK_TOKEN" - git clone https://github.com/Neilpang/acmetest.git && cp -r acme.sh acmetest/ && cd acmetest - - $NGROK_BIN http 80 --log stdout --log-format logfmt --log-level debug > ngrok.tmp & - - sleep 5 - - echo "===========================" - - cat ngrok.tmp - - echo ============================== - - grep -o 'Hostname:[a-z0-9]+.ngrok.io' ngrok.tmp - ./letest.sh From c947322a69d62bb3780b07a80c066a2d6aac7f97 Mon Sep 17 00:00:00 2001 From: neilpang Date: Tue, 15 Nov 2016 21:49:35 +0800 Subject: [PATCH 8/8] sudo for travis --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index fe615d82..f032890a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: shell +sudo: required env: global: @@ -20,7 +21,7 @@ script: - cd .. - curl -sSL https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -o ngrok-stable-linux-amd64.zip && unzip ngrok-stable-linux-amd64.zip && export NGROK_BIN="$(pwd)/ngrok" - git clone https://github.com/Neilpang/acmetest.git && cp -r acme.sh acmetest/ && cd acmetest - - ./letest.sh + - sudo ./letest.sh matrix: