From 4b74d83216dfa2e6b4ebab32565fdd4b29689e36 Mon Sep 17 00:00:00 2001 From: Kevin Daudt Date: Thu, 15 Aug 2019 12:32:53 +0200 Subject: aports: enable gitlab-ci linting This will enable the CI linting job for merge requests done on gitlab. The linting job will allow for failures, so linting failures will show up as worning, but won't prevent the rest of the CI pipeline to continue. --- .gitlab-ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitlab-ci.yml (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000..46af6eb290 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +stages: + - lint + +# Make sure master points to the correct upstream commit +before_script: + - > + git fetch $CI_MERGE_REQUEST_PROJECT_URL + +refs/heads/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME:refs/heads/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME + +lint: + stage: lint + image: alpinelinux/apkbuild-lint-tools:latest + script: + - changed-aports $CI_MERGE_REQUEST_TARGET_BRANCH_NAME | lint + allow_failure: true + only: + - merge_requests + tags: + - docker-alpine + - x86_64 -- cgit v1.2.3