forked from fcojean/l2tp-ipsec-vpn-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (26 loc) · 905 Bytes
/
.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
language: generic
sudo: required
dist: trusty
services:
- docker
install:
- docker build -t vpnserver .
- docker run --name vpnserver1 --env-file ./vpn.env.example -p 500:500/udp -p 4500:4500/udp -v /lib/modules:/lib/modules:ro -d --privileged vpnserver
- docker run --name vpnserver2 -p 501:500/udp -p 4501:4500/udp -v /lib/modules:/lib/modules:ro -d --privileged vpnserver
script:
- sleep 20
- docker ps | grep -q vpnserver1
- docker ps | grep -q vpnserver2
- docker logs vpnserver1
- docker logs vpnserver2
- docker exec -it vpnserver1 ipsec status
- docker exec -it vpnserver2 ipsec status
- docker restart vpnserver1
- docker restart vpnserver2
- sleep 20
- docker ps | grep -q vpnserver1
- docker ps | grep -q vpnserver2
- docker logs vpnserver1
- docker logs vpnserver2
- docker exec -it vpnserver1 ipsec status
- docker exec -it vpnserver2 ipsec status