Skip to content

Commit b715378

Browse files
author
Gustavo Muniz do Carmo
committed
test in containers
1 parent 265ad5c commit b715378

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.travis.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
language: python
33
python: "2.7"
44

5-
# Use the new container infrastructure
6-
sudo: false
5+
sudo: required
6+
7+
services:
8+
- docker
79

810
# Install ansible
911
addons:
@@ -19,8 +21,11 @@ install:
1921
- ansible --version
2022

2123
script:
22-
# Basic role syntax check
23-
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
24+
- docker run --name xenial -d codeyourinfra/python3:xenial
25+
- docker run --name bionic -d codeyourinfra/python3:bionic
26+
- ansible-playbook tests/test.yml -i tests/inventory
27+
- docker stop xenial bionic
28+
- docker rm xenial bionic
2429

2530
notifications:
2631
webhooks: https://galaxy.ansible.com/api/v1/notifications/

0 commit comments

Comments
 (0)