Skip to content

Commit

Permalink
Add .gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
voegelas committed Jul 2, 2024
1 parent 0dc70e6 commit 6ca9c63
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6ca9c63

Please sign in to comment.