forked from siomiz/SoftEtherVPN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (50 loc) · 2.22 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
44
45
46
47
48
49
50
51
dist: trusty
sudo: required
jobs:
include:
- stage: Docker Build
script:
- docker build -f Dockerfile .
- script:
- docker build -f Dockerfile.alpine .
- script:
- docker build -f Dockerfile.debian .
- script:
- docker build -f Dockerfile.ubuntu .
- stage: Test
script:
- docker build -t softethervpn -f Dockerfile .
- docker run softethervpn echo "[Travis CI OK]"
- script:
- docker build -t softethervpn-alpine -f Dockerfile.alpine .
- docker run softethervpn-alpine echo "[Travis CI OK]"
- script:
- docker build -t softethervpn-debian -f Dockerfile.debian .
- docker run softethervpn-debian echo "[Travis CI OK]"
- script:
- docker build -t softethervpn-ubuntu -f Dockerfile.ubuntu .
- docker run softethervpn-ubuntu echo "[Travis CI OK]"
- script:
- docker build -t softethervpn -f Dockerfile .
- docker network create --subnet 172.18.0.0/16 test-ipsec
- docker run -d --cap-add NET_ADMIN -e USERNAME=test -e PASSWORD=test --network test-ipsec --ip 172.18.0.3 softethervpn
- sudo bash tests/prepare-ipsec.sh
- sudo bash tests/test-ipsec.sh
- script:
- docker build -t softethervpn-alpine -f Dockerfile.alpine .
- docker network create --subnet 172.18.0.0/16 test-ipsec
- docker run -d --cap-add NET_ADMIN -e USERNAME=test -e PASSWORD=test --network test-ipsec --ip 172.18.0.3 softethervpn-alpine
- sudo bash tests/prepare-ipsec.sh
- sudo bash tests/test-ipsec.sh
- script:
- docker build -t softethervpn-debian -f Dockerfile.debian .
- docker network create --subnet 172.18.0.0/16 test-ipsec
- docker run -d --cap-add NET_ADMIN -e USERNAME=test -e PASSWORD=test --network test-ipsec --ip 172.18.0.3 softethervpn-debian
- sudo bash tests/prepare-ipsec.sh
- sudo bash tests/test-ipsec.sh
- script:
- docker build -t softethervpn-ubuntu -f Dockerfile.ubuntu .
- docker network create --subnet 172.18.0.0/16 test-ipsec
- docker run -d --cap-add NET_ADMIN -e USERNAME=test -e PASSWORD=test --network test-ipsec --ip 172.18.0.3 softethervpn-ubuntu
- sudo bash tests/prepare-ipsec.sh
- sudo bash tests/test-ipsec.sh