summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2023-05-05 18:19:53 +0200
committerjerome <jerome@xlinfo.fr>2023-05-05 18:19:53 +0200
commitf63af02256f310fb574082408e39c547bf76f4ff (patch)
tree58640a2a145090b2d2aa16372f5d3e6d30539bb8 /.gitlab-ci.yml
parentacbed9f08d72ac540f5df79bc8a463050afe37d9 (diff)
downloadhelloworld-f63af02256f310fb574082408e39c547bf76f4ff.tar.gz
helloworld-f63af02256f310fb574082408e39c547bf76f4ff.zip
update .gitlab-ci.yml
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml25
1 files changed, 3 insertions, 22 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 47a17a0..3940d3d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,37 +8,16 @@ workflow:
- if: '$CI_PIPELINE_SOURCE == "web"'
stages:
-- build
- test
- deploy
-build-job:
- stage: build
- tags:
- - loufux-docker
- image: ansible
- script:
- - ansible-galaxy install git+https://gitlab.com/loufux/ansible/helloworld.git
- - ansible-galaxy list
- artifacts:
- paths:
- - /root/.ansible/roles/helloworld
-
-syntax-check-job:
- stage: test
- tags:
- - loufux-docker
- image: ansible
- script:
- - ansible-playbook .ansible/roles/helloworld/tests/test.yml -i .ansible/roles/helloworld/tests/inventory --syntax-check ||true
-
lint-test-job:
stage: test
tags:
- loufux-docker
image: ansible
script:
- - ansible-lint -p .ansible/roles/helloworld/tests/test.yml | ansible-lint-junit -o ansible-lint.xml || true
+ - ansible-lint -p tests/test.yml | ansible-lint-junit -o ansible-lint.xml || true
artifacts:
reports:
junit: ansible-lint.xml
@@ -50,5 +29,7 @@ deploy-job:
- 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