commit | author | age
|
1de623
|
1 |
--- |
OB |
2 |
services: docker |
|
3 |
|
|
4 |
env: |
|
5 |
- distro: centos7 |
|
6 |
redis_daemon: redis |
|
7 |
- distro: fedora27 |
|
8 |
redis_daemon: redis |
|
9 |
- distro: ubuntu1604 |
|
10 |
redis_daemon: redis-server |
|
11 |
|
|
12 |
script: |
|
13 |
# Configure test script so we can run extra tests after playbook is run. |
|
14 |
- export container_id=$(date +%s) |
|
15 |
- export cleanup=false |
|
16 |
|
|
17 |
# Download test shim. |
|
18 |
- wget -O ${PWD}/tests/test.sh https://gist.githubusercontent.com/geerlingguy/73ef1e5ee45d8694570f334be385e181/raw/ |
|
19 |
- chmod +x ${PWD}/tests/test.sh |
|
20 |
|
|
21 |
# Run tests. |
|
22 |
- ${PWD}/tests/test.sh |
|
23 |
|
|
24 |
# Make sure Redis is running, and can be stopped and started cleanly. |
|
25 |
- 'docker exec --tty ${container_id} env TERM=xterm systemctl --no-pager status ${redis_daemon}' |
|
26 |
- 'docker exec --tty ${container_id} env TERM=xterm systemctl --no-pager stop ${redis_daemon}' |
|
27 |
- 'docker exec --tty ${container_id} env TERM=xterm systemctl --no-pager start ${redis_daemon}' |
|
28 |
|
|
29 |
after_failure: |
|
30 |
- 'docker exec --tty ${container_id} env TERM=xterm cat /var/log/redis/redis-server.log' |
|
31 |
|
|
32 |
notifications: |
|
33 |
webhooks: https://galaxy.ansible.com/api/v1/notifications/ |