From 9f1ee9d63e5e21c110646d08902df54ffeb309b6 Mon Sep 17 00:00:00 2001 From: Jose Raul Barreras <barreras@unl.edu> Date: Thu, 20 Sep 2018 22:29:11 +0000 Subject: [PATCH] add gitlab-ci --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..da9ca88 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,16 @@ +image: jrbm/static-code-analysis-standard + +stages: + - verify + +variables: + SONAR_URL: http://10.160.238.11:9000/ + +verify_master: + stage: verify + tags: + - docker + only: + - master + script: + - sonar-scanner -X -Dsonar.host.url=$SONAR_URL -Dsonar.projectKey=$CI_PROJECT_PATH_SLUG -Dsonar.sources=. -Dsonar.login=$SONAR_TOKEN_TEST -Dsonar.branch.name=master -- GitLab