From 1c02b85802f53f39bbf06f2cacc02f0e9ae9c020 Mon Sep 17 00:00:00 2001 From: neilpang Date: Tue, 15 Nov 2016 19:29:02 +0800 Subject: [PATCH] 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: