From fd552334b7884eee2aaf9bbfd45cf90b2c608c9f Mon Sep 17 00:00:00 2001 From: Emmanouil Kampitakis Date: Mon, 18 Feb 2019 00:39:24 +0100 Subject: [PATCH] Add Gitlab-Ci --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..4fc1ea3 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +--- +# -*- coding: utf-8 -*- + +before_script: + - apt-get update -qy + - apt-get install -y python-dev python-pip + - git submodule update --init + - pip install --upgrade ansible ansible-lint + - ansible --version + - ansible-lint --version + +stages: + - ansible-lint + - ansible-syntax-check + +ansible-lint-pip: + stage: ansible-lint + script: + - ansible-lint tests/test-pip.yml + +ansible-lint-docker: + stage: ansible-docker + script: + - ansible-lint tests/test-docker.yml