aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2019-08-15 12:32:53 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2019-08-15 12:08:22 +0000
commit4b74d83216dfa2e6b4ebab32565fdd4b29689e36 (patch)
treec4ead18e254e87a274235018da619ff0fb7de532 /.gitlab-ci.yml
parentbfc27c49bebd394b3cb6d5af4f5f948233446704 (diff)
downloadalpine_aports-4b74d83216dfa2e6b4ebab32565fdd4b29689e36.tar.bz2
alpine_aports-4b74d83216dfa2e6b4ebab32565fdd4b29689e36.tar.xz
alpine_aports-4b74d83216dfa2e6b4ebab32565fdd4b29689e36.zip
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.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml20
1 files changed, 20 insertions, 0 deletions
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 @@
1stages:
2 - lint
3
4# Make sure master points to the correct upstream commit
5before_script:
6 - >
7 git fetch $CI_MERGE_REQUEST_PROJECT_URL
8 +refs/heads/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME:refs/heads/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
9
10lint:
11 stage: lint
12 image: alpinelinux/apkbuild-lint-tools:latest
13 script:
14 - changed-aports $CI_MERGE_REQUEST_TARGET_BRANCH_NAME | lint
15 allow_failure: true
16 only:
17 - merge_requests
18 tags:
19 - docker-alpine
20 - x86_64