mirror of
https://github.com/chylex/IntelliJ-Rainbow-Brackets.git
synced 2025-05-14 12:34:03 +02:00
Try add jacocoTestReport & codecov
This commit is contained in:
parent
11dc83e8bf
commit
3ec83ffc7f
22
.travis.yml
22
.travis.yml
@ -6,20 +6,26 @@ jdk:
|
||||
before_install:
|
||||
- chmod +x gradlew
|
||||
|
||||
install:
|
||||
- echo "Override default Travis install step to avoid unnecessary './gradlew assemble'."
|
||||
|
||||
script:
|
||||
- ./gradlew test buildPlugin --console=plain
|
||||
- ./gradlew check buildPlugin --console=plain
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
deploy:
|
||||
provider: script
|
||||
script: ./gradlew clean check publishPlugin --console=plain
|
||||
on:
|
||||
tags: true
|
||||
all_branches: true
|
||||
|
||||
before_cache:
|
||||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
||||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
||||
|
||||
deploy:
|
||||
provider: script
|
||||
script: ./gradlew clean test publishPlugin --console=plain
|
||||
on:
|
||||
tags: true
|
||||
all_branches: true
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.gradle/caches/
|
||||
|
13
build.gradle
13
build.gradle
@ -25,6 +25,7 @@ repositories {
|
||||
apply plugin: "idea"
|
||||
apply plugin: "kotlin"
|
||||
apply plugin: "org.jetbrains.intellij"
|
||||
apply plugin: "jacoco"
|
||||
|
||||
intellij {
|
||||
pluginName name
|
||||
@ -67,4 +68,14 @@ jar.archiveName = "intellij-rainbow-brackets.jar"
|
||||
languageVersion = kotlinLanguageVersion
|
||||
apiVersion = kotlinTargetVersion
|
||||
jvmTarget = javaVersion
|
||||
}
|
||||
}
|
||||
|
||||
jacocoTestReport {
|
||||
reports {
|
||||
xml.enabled true
|
||||
csv.enabled false
|
||||
html.enabled true
|
||||
}
|
||||
}
|
||||
|
||||
check.dependsOn jacocoTestReport
|
Loading…
Reference in New Issue
Block a user