-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- remove support (and testing) for Debian8 and DNS-01 challenges (because dns-lexicon requires newer version of python (3.5) than is available in stock Debian 8) - have vagrant to use python virtualenv (matching travis). - upgrade travis distro to bionic (matching vagrant). - move molecule deprecated `playbook.yml` to `converge.yml`. - add prepare.yml to install cron into docker containers. - update linting to be Molecule 3.x compliant. - update README.md with testing details. - some trailing whitespace (auto-)removed.
- Loading branch information
Showing
9 changed files
with
80 additions
and
24 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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
--- | ||
language: python | ||
services: docker | ||
dist: xenial | ||
dist: bionic | ||
|
||
env: | ||
- GOPATH=~/gopath | ||
|
||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
extends: default | ||
|
||
rules: | ||
braces: | ||
max-spaces-inside: 1 | ||
|
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
File renamed without changes.
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,8 @@ | ||
--- | ||
- name: Prepare | ||
hosts: all | ||
tasks: | ||
- name: Install cron for molecule based role testing | ||
package: | ||
name: cron | ||
state: present |
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,22 @@ | ||
#!/bin/bash | ||
# accumulate error codes, allowing all linters to execute. | ||
# exit with total of all error codes at end. | ||
|
||
declare -i errors | ||
catch() { errors=$errors+$?; } | ||
trap catch ERR | ||
onexit() { exit $errors; } | ||
trap onexit EXIT | ||
|
||
#set -e | ||
|
||
yamllint . | ||
|
||
# adding "." to avoid warning over expectation of playbook.yml | ||
# ansible-lint | ||
ansible-lint . | ||
|
||
# explictly run on molecule playbooks, skipped otherwise | ||
ansible-lint molecule/*/*.yml | ||
|
||
flake8 |
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