forked from ANXS/postgresql
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
34 lines (28 loc) · 941 Bytes
/
.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
---
language: python
python: "2.7"
sudo: required
dist: trusty
services:
- docker
env:
matrix:
- IMAGE_NAME="ubuntu:16.04-builded"
- IMAGE_NAME="debian:8-builded"
- IMAGE_NAME="debian:9-builded"
- IMAGE_NAME="centos:7-builded"
- IMAGE_NAME="centos:6-builded"
## DISABLED ## - IMAGE_NAME="fedora:27-builded"
install:
- pip install ansible=="2.4.4.0" docker-py
- ln -s ${PWD} tests/docker/ANXS.postgresql
script:
# Syntax check
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml --syntax-check
# Play test
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml
# Idempotence test
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml | tee idempotence_out
- ./tests/idempotence_check.sh idempotence_out
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/