1
0
mirror of synced 2024-11-22 21:16:02 +03:00
setup-ipsec-vpn/.travis.yml
hwdsl2 3f2b2cbc0b Remove Debian 7
- Remove support for Debian 7 (Wheezy)
- Libreswan 3.21 no longer compiles on Debian 7 or Ubuntu 12.04
- Fix tests by switching to Ubuntu 14.04
2017-08-20 11:50:46 -05:00

44 lines
1.2 KiB
YAML

language: bash
sudo: required
dist: trusty
addons:
apt:
sources:
- debian-sid
packages:
- shellcheck
script:
- 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
- sudo grep '"vpn_user" l2tpd "vpn_pass"' /etc/ppp/chap-secrets
- 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
- sudo grep '"vpn_user" l2tpd "vpn_pass"' /etc/ppp/chap-secrets
- sudo grep 'vpn_user' /etc/ipsec.d/passwd
notifications:
email:
- linsongui@gmail.com