Commit 85eb491f authored by Sebastian's avatar Sebastian
Browse files

Add CI configuration that runs the linter

parent 8ae330cd
Pipeline #7510 passed with stage
in 2 minutes and 59 seconds
image: briar/ci-image-android:latest
stages:
- test
workflow:
# when to create a CI pipeline
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS'
when: never # avoids duplicate jobs for branch and MR
- if: '$CI_COMMIT_BRANCH'
- if: '$CI_COMMIT_TAG'
test:
stage: test
before_script:
- set -e
- export GRADLE_USER_HOME=$PWD/.gradle
script:
- ./gradlew --no-daemon ktlintCheck
after_script:
# these file change every time and should not be cached
- rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock
- rm -fr $GRADLE_USER_HOME/caches/*/plugin-resolution/
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- .gradle/wrapper
- .gradle/caches
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: always
- when: always
......@@ -15,9 +15,9 @@ group = "app.briar.desktop"
version = "0.1"
repositories {
jcenter()
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
jcenter()
}
dependencies {
......
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
rootProject.name = "briar-desktop"
include("briar:bramble-api")
......
Supports Markdown
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