summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml25
1 files changed, 14 insertions, 11 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7fa3b11..b430799 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,27 +8,30 @@ workflow:
- if: '$CI_PIPELINE_SOURCE == "web"'
stages:
+- build
- test
-lint-test-job:
- stage: test
+build-job:
+ stage: build
tags:
- loufux-docker
image: ansible
script:
- - ansible-lint -p tests/test.yml | ansible-lint-junit -o ansible-lint.xml || true
- artifacts:
- reports:
- junit: ansible-lint.xml
-
+ - ansible-galaxy install git+https://gitlab.com/loufux/ansible/helloworld.git
+ - ansible-galaxy list
+ - ansible-playbook ~/.ansible/roles/helloworld/tests/test.yml
+ artifact:
+ - path: ~/.ansible/roles/helloworld
-deploy-check-job:
+lint-test-job:
stage: test
tags:
- loufux-docker
image: ansible
script:
- - ansible-galaxy install git+https://gitlab.com/loufux/ansible/helloworld.git
- - ansible-galaxy list
- - ansible-playbook ~/.ansible/roles/helloworld/tests/test.yml -i ~/.ansible/roles/helloworld/tests/inventory
+ - ansible-lint -p ~/.ansible/roles/helloworld/tests/test.yml | ansible-lint-junit -o ansible-lint.xml || true
+ artifacts:
+ reports:
+ junit: ansible-lint.xml
+