# You can override the included template(s) by including variable overrides # See https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings # Note that environment variables can be set in several places # See https://docs.gitlab.com/ee/ci/variables/#priority-of-environment-variables workflow: rules: - if: '$CI_PIPELINE_SOURCE == "web"' stages: - build - test build-job: stage: build tags: - lxc image: ansible script: - ansible-galaxy install git+http://dev.xlinfo.lan/git/ansible/roles/helloworld.git/ --roles-path "." - ansible-playbook helloworld/tests/test.yml artifacts: paths: - helloworld lint-test-job: stage: test tags: - lxc image: ansible script: - ansible-lint -p helloworld/tests/test.yml | ansible-lint-junit -o ansible-lint.xml || true artifacts: reports: junit: ansible-lint.xml