Verified Commit 112c7e58 authored by madhead's avatar madhead

Simple CI/CD

parent 54583acd
Pipeline #65283331 passed with stages
in 5 minutes and 59 seconds
Saberlight app
......@@ -9,7 +9,7 @@ repositories {
kotlin {
linuxArm32Hfp("raspberrypi") {
binaries {
executable {
executable("saberlight") {
entryPoint = "by.dev.madhead.saberlight.main"
}
}
......
CI/CD, infrastructure and deployment scripts
stages:
- Build
- Test
build:
stage: Build
image: openjdk:12
dependencies: []
script:
- ./gradlew clean assemble
gradle-version:
stage: Test
image: openjdk:12
dependencies: []
script:
- gradle_version=$(./gradlew --version | sed -rn 's/^Gradle (.+)$/\1/p')
- latest_gradle_version=$(curl https://services.gradle.org/versions/current | python2 -c 'import json,sys;print json.load(sys.stdin)["version"]')
- echo $gradle_version
- echo $latest_gradle_version
- '[[ $gradle_version == $latest_gradle_version ]]'
allow_failure: true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment