diff options
author | EuAndreh <eu@euandre.org> | 2019-06-05 19:26:14 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-06-05 19:26:50 -0300 |
commit | b140a730ae412ce2f7eb796fa577d51a75272b9b (patch) | |
tree | d3b596c7cc4eecc1c5baf2568ad4f18034988f7c | |
parent | TODOs.org (diff) | |
download | server-b140a730ae412ce2f7eb796fa577d51a75272b9b.tar.gz server-b140a730ae412ce2f7eb796fa577d51a75272b9b.tar.xz |
Add ansible lint in test stage
-rw-r--r-- | .ansible-lint | 3 | ||||
-rw-r--r-- | default.nix | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..a31e6d4 --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,3 @@ +skip_list: + - '403' +use_default_rules: true
\ No newline at end of file diff --git a/default.nix b/default.nix index 18374eb..20d83e1 100644 --- a/default.nix +++ b/default.nix @@ -32,6 +32,13 @@ in rec { touch $out ''; }); + ansibleLint = utils.baseTask.overrideAttrs (baseAttrs: { + name = "${baseAttrs.name}-ansible-lint"; + buildInputs = baseAttrs.buildInputs ++ [ pkgs.ansible-lint ]; + buildPhase = '' + ansible-lint provision.yaml + ''; + }); shellEnvironment = utils.baseTask.overrideAttrs (baseAttrs: { name = "${baseAttrs.name}-shell-inputs"; buildInputs = with pkgs; [ @@ -53,6 +60,7 @@ in rec { utils.formatNix subtasks.formatTerraform subtasks.dockerComposeLint + subtasks.ansibleLint subtasks.shellEnvironment ]; # Used in .build.yml to run Bash scripts |