2016-04-16 01:47:02 +03:00
|
|
|
language: bash
|
|
|
|
|
2016-05-14 19:18:16 +03:00
|
|
|
sudo: required
|
2017-08-20 19:50:46 +03:00
|
|
|
dist: trusty
|
2016-04-16 01:47:02 +03:00
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- debian-sid
|
|
|
|
packages:
|
|
|
|
- shellcheck
|
|
|
|
|
|
|
|
script:
|
2017-01-07 01:08:17 +03:00
|
|
|
- export SHELLCHECK_OPTS="-e SC1091"
|
|
|
|
- shellcheck *.sh extras/*.sh
|
|
|
|
- sudo sed -i "/debian unstable/d" /etc/apt/sources.list
|
|
|
|
- sudo VPN_IPSEC_PSK='vpn_psk'
|
|
|
|
VPN_USER='vpn_user'
|
|
|
|
VPN_PASSWORD='vpn_pass' sh vpnsetup.sh
|
|
|
|
- sleep 10
|
|
|
|
- sudo netstat -anpu | grep pluto
|
|
|
|
- sudo netstat -anpu | grep xl2tpd
|
|
|
|
- sudo grep 'vpn_psk' /etc/ipsec.secrets
|
2017-05-29 05:47:17 +03:00
|
|
|
- sudo grep '"vpn_user" l2tpd "vpn_pass"' /etc/ppp/chap-secrets
|
2017-01-07 01:08:17 +03:00
|
|
|
- sudo grep 'vpn_user' /etc/ipsec.d/passwd
|
|
|
|
- sudo sh vpnsetup.sh
|
|
|
|
- sleep 10
|
|
|
|
- sudo netstat -anpu | grep pluto
|
|
|
|
- sudo netstat -anpu | grep xl2tpd
|
|
|
|
- sed -i -e "/^YOUR_IPSEC_PSK/s/''/'vpn_psk'/"
|
|
|
|
-e "/^YOUR_USERNAME/s/''/'vpn_user'/"
|
|
|
|
-e "/^YOUR_PASSWORD/s/''/'vpn_pass'/" vpnsetup.sh
|
|
|
|
- sudo sh vpnsetup.sh
|
|
|
|
- sleep 10
|
|
|
|
- sudo netstat -anpu | grep pluto
|
|
|
|
- sudo netstat -anpu | grep xl2tpd
|
|
|
|
- sudo grep 'vpn_psk' /etc/ipsec.secrets
|
2017-05-29 05:47:17 +03:00
|
|
|
- sudo grep '"vpn_user" l2tpd "vpn_pass"' /etc/ppp/chap-secrets
|
2017-01-07 01:08:17 +03:00
|
|
|
- sudo grep 'vpn_user' /etc/ipsec.d/passwd
|
2016-12-28 22:24:17 +03:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
- linsongui@gmail.com
|