-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (39 loc) · 1.28 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
41
42
43
44
45
---
language: python
python: 2.7
env:
global:
- ANSIBLE_ROLE_NAME: ansible-role-octave-dev
- ANSIBLE_ROLE_DIR: /etc/ansible/roles/${ANSIBLE_ROLE_NAME}
matrix:
- Distribution: Debian
Release: jessie
- Distribution: Debian
Release: stretch
- Distribution: Debian
Release: buster
- Distribution: Debian
Release: sid
- Distribution: Ubuntu
Release: trusty
- Distribution: Ubuntu
Release: xenial
- Distribution: Ubuntu
Release: artful
- Distribution: Ubuntu
Release: bionic
matrix:
allow_failures:
- env: Distribution=Debian Release=sid
services:
- docker
before_install:
- export TAG=$(echo ${Distribution}-${Release}:ansible | tr A-Z a-z)
- docker build -f travis/Dockerfile.${Distribution}-${Release} -t ${TAG} travis
- docker run -d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v ${PWD}:${ANSIBLE_ROLE_DIR}:ro ${TAG} > /tmp/container
- export CONTAINER=$(cat /tmp/container)
script:
- docker exec ${CONTAINER} env ANSIBLE_FORCE_COLOR=1 ansible-playbook -v ${ANSIBLE_ROLE_DIR}/travis/test.yml --syntax-check
- docker exec ${CONTAINER} env ANSIBLE_FORCE_COLOR=1 ansible-playbook -v ${ANSIBLE_ROLE_DIR}/travis/test.yml
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/