-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
34 lines (28 loc) · 1.06 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
machine:
services:
- docker
dependencies:
cache_directories:
- "~/docker"
pre:
- docker info && docker version
# Cache some Docker images to make builds faster
- mkdir -p ~/docker
# Cache centos:centos7
- if [[ -e ~/docker/centos.tar ]]; then docker load -i ~/docker/centos.tar; else docker pull centos:centos7 && docker save centos:centos7 > ~/docker/centos.tar; fi
override:
- docker pull centos:centos7
# Run tests
test:
pre:
# Build madskonradsen/centos-supervisor image
- docker build -t madskonradsen/centos-supervisor .
override:
- docker run -d madskonradsen/centos-supervisor
- docker run -d madskonradsen/centos-supervisor "ps aux"
# Test if supervisord is running
- docker run -it madskonradsen/centos-supervisor "ps aux | grep supervisord"
# Test if supervisorctl is working
- docker run -it madskonradsen/centos-supervisor "supervisorctl stop all"
# Test if we have inotify working
- docker run -it madskonradsen/centos-supervisor "inotifywatch -t 1 /home | tee /tmp/out"