-
Notifications
You must be signed in to change notification settings - Fork 13
/
circle.yml
40 lines (33 loc) · 1.52 KB
/
circle.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
machine:
services:
- docker
dependencies:
override:
- docker info
- docker version
- docker build -f test/Dockerfile-ubuntu14.04 -t nginx_trusty .
- docker build -f test/Dockerfile-ubuntu12.04 -t nginx_precise .
- docker build -f test/Dockerfile-debian8 -t nginx_jessie .
- docker build -f test/Dockerfile-debian7 -t nginx_wheezy .
- docker build -f test/Dockerfile-centos7 -t nginx_centos7 .
- docker build -f test/Dockerfile-centos6 -t nginx_centos6 .
- docker build -f test/Dockerfile-alpine3 -t nginx_alpine3 .
test:
override:
- docker run -v $(pwd):/data nginx_trusty
- docker run -v $(pwd):/data nginx_precise
- docker run -v $(pwd):/data nginx_jessie
- docker run -v $(pwd):/data nginx_wheezy
- docker run -d --name c5 -v $(pwd):/data -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /tmp/$(mktemp -d):/run nginx_centos7 /usr/sbin/init
#- sleep 10
#- sudo lxc-attach -n "$(docker inspect --format '{{.Id}}' c5)" -- bash -c run-test.sh
- docker run -v $(pwd):/data nginx_centos6
- docker run -v $(pwd):/data nginx_alpine3
- echo "==> Validating the test results..."
- grep '^Active connections' result-ubuntu14.04
- grep '^Active connections' result-ubuntu12.04
- grep '^Active connections' result-debian8
- grep '^Active connections' result-debian7
#- grep '^Active connections' result-centos7
- grep '^Active connections' result-centos6
- grep '^Active connections' result-alpine3