1
0
mirror of synced 2024-11-26 06:46:06 +03:00

Update tests

This commit is contained in:
hwdsl2 2021-09-14 23:53:56 -05:00
parent 86aaaf1283
commit 7a7f7e9999
2 changed files with 108 additions and 96 deletions

View File

@ -32,38 +32,37 @@ jobs:
sudo apt-get -yqq update
sudo apt-get -yqq install wget curl
wget_c="wget -t 3 -T 30 -nv -O"
gh_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master"
wg="wget -t 3 -T 30 -nv -O"
gh="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master"
gi="https://git.io"
$wget_c vpnsetup.sh https://git.io/vpnsetup
$wget_c vpnsetup_centos.sh https://git.io/vpnsetup-centos
$wget_c vpnsetup_amzn.sh https://git.io/vpnsetup-amzn
$wget_c vpnsetup_ubuntu.sh https://git.io/vpnsetup-ubuntu
$wget_c vpnsetup_alpine.sh https://git.io/vpnsetup-alpine
$wget_c quickstart.sh https://git.io/vpnquickstart
$wget_c ikev2setup.sh https://git.io/ikev2setup
$wget_c vpnupgrade.sh https://git.io/vpnupgrade
$wget_c vpnupgrade_centos.sh https://git.io/vpnupgrade-centos
$wget_c vpnupgrade_amzn.sh https://git.io/vpnupgrade-amzn
$wget_c vpnupgrade_ubuntu.sh https://git.io/vpnupgrade-ubuntu
$wget_c vpnupgrade_alpine.sh https://git.io/vpnupgrade-alpine
$wg vpnsetup.sh "$gi/vpnsetup"
$wg vpnsetup_centos.sh "$gi/vpnsetup-centos"
$wg vpnsetup_amzn.sh "$gi/vpnsetup-amzn"
$wg vpnsetup_ubuntu.sh "$gi/vpnsetup-ubuntu"
$wg vpnsetup_alpine.sh "$gi/vpnsetup-alpine"
$wg quickstart.sh "$gi/vpnquickstart"
$wg ikev2setup.sh "$gi/ikev2setup"
$wg vpnupgrade.sh "$gi/vpnupgrade"
$wg vpnupgrade_centos.sh "$gi/vpnupgrade-centos"
$wg vpnupgrade_amzn.sh "$gi/vpnupgrade-amzn"
$wg vpnupgrade_ubuntu.sh "$gi/vpnupgrade-ubuntu"
$wg vpnupgrade_alpine.sh "$gi/vpnupgrade-alpine"
$wg vpnuninstall.sh "$gi/vpnuninstall"
$wget_c vpnsetup2.sh "$gh_url/vpnsetup.sh"
$wget_c vpnsetup_centos2.sh "$gh_url/vpnsetup_centos.sh"
$wget_c vpnsetup_amzn2.sh "$gh_url/vpnsetup_amzn.sh"
$wget_c vpnsetup_ubuntu2.sh "$gh_url/vpnsetup_ubuntu.sh"
$wget_c vpnsetup_alpine2.sh "$gh_url/vpnsetup_alpine.sh"
$wget_c quickstart2.sh "$gh_url/extras/quickstart.sh"
$wget_c ikev2setup2.sh "$gh_url/extras/ikev2setup.sh"
$wget_c vpnupgrade2.sh "$gh_url/extras/vpnupgrade.sh"
$wget_c vpnupgrade_centos2.sh "$gh_url/extras/vpnupgrade_centos.sh"
$wget_c vpnupgrade_amzn2.sh "$gh_url/extras/vpnupgrade_amzn.sh"
$wget_c vpnupgrade_ubuntu2.sh "$gh_url/extras/vpnupgrade_ubuntu.sh"
$wget_c vpnupgrade_alpine2.sh "$gh_url/extras/vpnupgrade_alpine.sh"
curl -fsSI https://bit.ly/addvpnuser | grep -q 'add_vpn_user.sh'
curl -fsSI https://bit.ly/delvpnuser | grep -q 'del_vpn_user.sh'
curl -fsSI https://bit.ly/updatevpnusers | grep -q 'update_vpn_users.sh'
$wg vpnsetup2.sh "$gh/vpnsetup.sh"
$wg vpnsetup_centos2.sh "$gh/vpnsetup_centos.sh"
$wg vpnsetup_amzn2.sh "$gh/vpnsetup_amzn.sh"
$wg vpnsetup_ubuntu2.sh "$gh/vpnsetup_ubuntu.sh"
$wg vpnsetup_alpine2.sh "$gh/vpnsetup_alpine.sh"
$wg quickstart2.sh "$gh/extras/quickstart.sh"
$wg ikev2setup2.sh "$gh/extras/ikev2setup.sh"
$wg vpnupgrade2.sh "$gh/extras/vpnupgrade.sh"
$wg vpnupgrade_centos2.sh "$gh/extras/vpnupgrade_centos.sh"
$wg vpnupgrade_amzn2.sh "$gh/extras/vpnupgrade_amzn.sh"
$wg vpnupgrade_ubuntu2.sh "$gh/extras/vpnupgrade_ubuntu.sh"
$wg vpnupgrade_alpine2.sh "$gh/extras/vpnupgrade_alpine.sh"
$wg vpnuninstall2.sh "$gh/extras/vpnuninstall.sh"
diff vpnsetup.sh ../vpnsetup.sh
diff vpnsetup_centos.sh ../vpnsetup_centos.sh
@ -77,6 +76,7 @@ jobs:
diff vpnupgrade_amzn.sh ../extras/vpnupgrade_amzn.sh
diff vpnupgrade_ubuntu.sh ../extras/vpnupgrade_ubuntu.sh
diff vpnupgrade_alpine.sh ../extras/vpnupgrade_alpine.sh
diff vpnuninstall.sh ../extras/vpnuninstall.sh
diff vpnsetup2.sh ../vpnsetup.sh
diff vpnsetup_centos2.sh ../vpnsetup_centos.sh
@ -90,6 +90,12 @@ jobs:
diff vpnupgrade_amzn2.sh ../extras/vpnupgrade_amzn.sh
diff vpnupgrade_ubuntu2.sh ../extras/vpnupgrade_ubuntu.sh
diff vpnupgrade_alpine2.sh ../extras/vpnupgrade_alpine.sh
diff vpnuninstall2.sh ../extras/vpnuninstall.sh
bl="https://bit.ly"
curl -fsSI "$bl/addvpnuser" | grep -q 'add_vpn_user.sh'
curl -fsSI "$bl/delvpnuser" | grep -q 'del_vpn_user.sh'
curl -fsSI "$bl/updatevpnusers" | grep -q 'update_vpn_users.sh'
test_set_1:
needs: check_urls

View File

@ -61,38 +61,37 @@ jobs:
sudo apt-get -yqq update
sudo apt-get -yqq install wget curl
wget_c="wget -t 3 -T 30 -nv -O"
gh_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master"
wg="wget -t 3 -T 30 -nv -O"
gh="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master"
gi="https://git.io"
$wget_c vpnsetup.sh https://git.io/vpnsetup
$wget_c vpnsetup_centos.sh https://git.io/vpnsetup-centos
$wget_c vpnsetup_amzn.sh https://git.io/vpnsetup-amzn
$wget_c vpnsetup_ubuntu.sh https://git.io/vpnsetup-ubuntu
$wget_c vpnsetup_alpine.sh https://git.io/vpnsetup-alpine
$wget_c quickstart.sh https://git.io/vpnquickstart
$wget_c ikev2setup.sh https://git.io/ikev2setup
$wget_c vpnupgrade.sh https://git.io/vpnupgrade
$wget_c vpnupgrade_centos.sh https://git.io/vpnupgrade-centos
$wget_c vpnupgrade_amzn.sh https://git.io/vpnupgrade-amzn
$wget_c vpnupgrade_ubuntu.sh https://git.io/vpnupgrade-ubuntu
$wget_c vpnupgrade_alpine.sh https://git.io/vpnupgrade-alpine
$wg vpnsetup.sh "$gi/vpnsetup"
$wg vpnsetup_centos.sh "$gi/vpnsetup-centos"
$wg vpnsetup_amzn.sh "$gi/vpnsetup-amzn"
$wg vpnsetup_ubuntu.sh "$gi/vpnsetup-ubuntu"
$wg vpnsetup_alpine.sh "$gi/vpnsetup-alpine"
$wg quickstart.sh "$gi/vpnquickstart"
$wg ikev2setup.sh "$gi/ikev2setup"
$wg vpnupgrade.sh "$gi/vpnupgrade"
$wg vpnupgrade_centos.sh "$gi/vpnupgrade-centos"
$wg vpnupgrade_amzn.sh "$gi/vpnupgrade-amzn"
$wg vpnupgrade_ubuntu.sh "$gi/vpnupgrade-ubuntu"
$wg vpnupgrade_alpine.sh "$gi/vpnupgrade-alpine"
$wg vpnuninstall.sh "$gi/vpnuninstall"
$wget_c vpnsetup2.sh "$gh_url/vpnsetup.sh"
$wget_c vpnsetup_centos2.sh "$gh_url/vpnsetup_centos.sh"
$wget_c vpnsetup_amzn2.sh "$gh_url/vpnsetup_amzn.sh"
$wget_c vpnsetup_ubuntu2.sh "$gh_url/vpnsetup_ubuntu.sh"
$wget_c vpnsetup_alpine2.sh "$gh_url/vpnsetup_alpine.sh"
$wget_c quickstart2.sh "$gh_url/extras/quickstart.sh"
$wget_c ikev2setup2.sh "$gh_url/extras/ikev2setup.sh"
$wget_c vpnupgrade2.sh "$gh_url/extras/vpnupgrade.sh"
$wget_c vpnupgrade_centos2.sh "$gh_url/extras/vpnupgrade_centos.sh"
$wget_c vpnupgrade_amzn2.sh "$gh_url/extras/vpnupgrade_amzn.sh"
$wget_c vpnupgrade_ubuntu2.sh "$gh_url/extras/vpnupgrade_ubuntu.sh"
$wget_c vpnupgrade_alpine2.sh "$gh_url/extras/vpnupgrade_alpine.sh"
curl -fsSI https://bit.ly/addvpnuser | grep -q 'add_vpn_user.sh'
curl -fsSI https://bit.ly/delvpnuser | grep -q 'del_vpn_user.sh'
curl -fsSI https://bit.ly/updatevpnusers | grep -q 'update_vpn_users.sh'
$wg vpnsetup2.sh "$gh/vpnsetup.sh"
$wg vpnsetup_centos2.sh "$gh/vpnsetup_centos.sh"
$wg vpnsetup_amzn2.sh "$gh/vpnsetup_amzn.sh"
$wg vpnsetup_ubuntu2.sh "$gh/vpnsetup_ubuntu.sh"
$wg vpnsetup_alpine2.sh "$gh/vpnsetup_alpine.sh"
$wg quickstart2.sh "$gh/extras/quickstart.sh"
$wg ikev2setup2.sh "$gh/extras/ikev2setup.sh"
$wg vpnupgrade2.sh "$gh/extras/vpnupgrade.sh"
$wg vpnupgrade_centos2.sh "$gh/extras/vpnupgrade_centos.sh"
$wg vpnupgrade_amzn2.sh "$gh/extras/vpnupgrade_amzn.sh"
$wg vpnupgrade_ubuntu2.sh "$gh/extras/vpnupgrade_ubuntu.sh"
$wg vpnupgrade_alpine2.sh "$gh/extras/vpnupgrade_alpine.sh"
$wg vpnuninstall2.sh "$gh/extras/vpnuninstall.sh"
diff vpnsetup.sh ../vpnsetup.sh
diff vpnsetup_centos.sh ../vpnsetup_centos.sh
@ -106,6 +105,7 @@ jobs:
diff vpnupgrade_amzn.sh ../extras/vpnupgrade_amzn.sh
diff vpnupgrade_ubuntu.sh ../extras/vpnupgrade_ubuntu.sh
diff vpnupgrade_alpine.sh ../extras/vpnupgrade_alpine.sh
diff vpnuninstall.sh ../extras/vpnuninstall.sh
diff vpnsetup2.sh ../vpnsetup.sh
diff vpnsetup_centos2.sh ../vpnsetup_centos.sh
@ -119,6 +119,12 @@ jobs:
diff vpnupgrade_amzn2.sh ../extras/vpnupgrade_amzn.sh
diff vpnupgrade_ubuntu2.sh ../extras/vpnupgrade_ubuntu.sh
diff vpnupgrade_alpine2.sh ../extras/vpnupgrade_alpine.sh
diff vpnuninstall2.sh ../extras/vpnuninstall.sh
bl="https://bit.ly"
curl -fsSI "$bl/addvpnuser" | grep -q 'add_vpn_user.sh'
curl -fsSI "$bl/delvpnuser" | grep -q 'del_vpn_user.sh'
curl -fsSI "$bl/updatevpnusers" | grep -q 'update_vpn_users.sh'
test_set_1:
needs: [shellcheck, check_urls]