forked from siomiz/SoftEtherVPN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (39 loc) · 1.63 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
dist: trusty
sudo: required
jobs:
include:
- stage: Docker Build
script:
- docker build .
- script:
- docker build -f Dockerfile.alpine .
- script:
- docker build -f Dockerfile.debian .
- stage: Test
script:
- docker build -t softethervpn .
- 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 .
- 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