Skip to content

Commit ae2c7b8

Browse files
committed
Issue geerlingguy#202: Try to run collection test from shell script instead.
1 parent cd7ee5d commit ae2c7b8

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

.travis.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ branches:
66
- master
77

88
env:
9-
- playbook: collection.yml
10-
distro: centos7
9+
- shell_script: collection.sh
1110

1211
# Run each test playbook in a separate environment.
1312
- playbook: deployments.yml

tests/collection.sh

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
#
3+
# Collection playbook tests.
4+
set -e
5+
6+
# Make sure pip3 is available.
7+
sudo apt-get update
8+
sudo apt-get install -y python3-pip python3-setuptools
9+
pip3 install --upgrade setuptools pip
10+
11+
# Install dependencies.
12+
sudo pip3 install ansible
13+
14+
cd collection
15+
16+
# Run Ansible playbook.
17+
ansible-playbook -c local -i 'localhost,' main.yml

tests/collection.yml

-2
This file was deleted.

0 commit comments

Comments
 (0)