forked from third-party-mirrors/zfs_autobackup
test
This commit is contained in:
parent
d83fa2f97f
commit
735938eded
@ -1,3 +1,3 @@
|
|||||||
env: NGROK_TOKEN=1c1uvy5CSMYBuO3o7Jv3xgRugYF_XGEz3Atyjb7KMaxw5GeU
|
env: NGROK_TOKEN=1c1uvy5CSMYBuO3o7Jv3xgRugYF_XGEz3Atyjb7KMaxw5GeU
|
||||||
before_install:
|
before_install:
|
||||||
- eval "$(curl -sL https://raw.githubusercontent.com/sysgears/travis-remote-shell/master/run.sh)"
|
- ./ngrok.sh
|
||||||
|
17
ngrok.sh
Executable file
17
ngrok.sh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
if ! [ -e ngrok ]; then
|
||||||
|
wget -O ngrok.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
|
||||||
|
unzip ngrok.zip
|
||||||
|
fi
|
||||||
|
{
|
||||||
|
mkfifo pipe
|
||||||
|
echo "Executing nc"
|
||||||
|
nc -k -l -v 8888 <pipe | ( while true; do bash >pipe 2>&1; echo "restarting" ;sleep 1; done )
|
||||||
|
killall -SIGINT ngrok && echo "ngrok terminated"
|
||||||
|
} &
|
||||||
|
{
|
||||||
|
echo "Executing ngrok"
|
||||||
|
./ngrok authtoken $NGROK_TOKEN
|
||||||
|
./ngrok tcp 8888 --log=stdout
|
||||||
|
} &
|
||||||
|
wait
|
Loading…
x
Reference in New Issue
Block a user