This repository has been archived by the owner on Oct 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add testing to role Testing is based on how geerlingguy test roles. * Add fancy README badge.
- Loading branch information
1 parent
b98c3d3
commit 8ea7486
Showing
5 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
tests/test.sh | ||
*.retry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
services: docker | ||
|
||
env: | ||
- distro: centos7 | ||
- distro: ubuntu1604 | ||
|
||
script: | ||
# Download test shim. | ||
- wget -O ${PWD}/tests/test.sh https://gist.githubusercontent.com/geerlingguy/73ef1e5ee45d8694570f334be385e181/raw/ | ||
- chmod +x ${PWD}/tests/test.sh | ||
|
||
# Run tests. | ||
- ${PWD}/tests/test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
- hosts: all | ||
|
||
pre_tasks: | ||
- name: Install dependancies (apt) | ||
apt: | ||
update_cache: yes | ||
cache_valid_time: 600 | ||
name: "{{ item }}" | ||
with_items: | ||
- git | ||
- build-essential | ||
when: ansible_os_family == 'Debian' | ||
|
||
- name: Install dependancies (yum) | ||
yum: | ||
name: "{{ item }}" | ||
with_items: | ||
- git | ||
- gcc | ||
- gcc-c++ | ||
- make | ||
when: ansible_os_family == 'RedHat' | ||
|
||
roles: | ||
- role_under_test |