From 6ca9c63fb81523e106d4d914efe064e58c14be57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20V=C3=B6gele?= Date: Sun, 22 Oct 2023 17:51:32 +0200 Subject: [PATCH] Add .gitlab-ci.yml --- .gitlab-ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000..178d4e9417 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,23 @@ +--- +image: voegelas/debian-devel + +build: + stage: build + rules: + - if: $CI_COMMIT_TAG =~ /-intellij_idea$/ + when: always + - when: never + timeout: 2 hours + script: + - | + sed -i -E '/^VERSION_NAME=/s/(-SNAPSHOT)?$/-SNAPSHOT/' gradle.properties + if [ -n "$http_proxy" ]; then + echo "systemProp.https.proxyHost=$(echo $http_proxy | awk -F '[:/]+' '{print $2}')" >>gradle.properties + echo "systemProp.https.proxyPort=$(echo $http_proxy | awk -F '[:/]+' '{print $3}')" >>gradle.properties + fi + - ./gradlew shadowJarExecutable + artifacts: + name: ktlint + paths: + - ktlint-cli/build/run/ktlint + expire_in: 3 hrs