forked from hwdsl2/setup-ipsec-vpn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (39 loc) · 1.16 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
language: bash
sudo: required
dist: trusty
addons:
apt:
sources:
- debian-sid
packages:
- shellcheck
script:
- export SHELLCHECK_OPTS="-e SC1091,SC1117"
- 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: