Skip to content

Commit b61f7a3

Browse files
committed
Setup Travis and AppVeyor CI
1 parent e78d901 commit b61f7a3

File tree

3 files changed

+70
-5
lines changed

3 files changed

+70
-5
lines changed

.travis.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
language: java
2+
3+
os:
4+
- linux
5+
- osx
6+
7+
jdk:
8+
- oraclejdk8
9+
- oraclejdk11
10+
- openjdk8
11+
- openjdk11
12+
- openjdk14
13+
14+
matrix:
15+
fast_finish: true
16+
exclude:
17+
- os: osx
18+
jdk: oraclejdk8
19+
- os: osx
20+
jdk: openjdk8
21+
22+
before_cache:
23+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
24+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
25+
26+
cache:
27+
directories:
28+
- $HOME/.gradle/caches/
29+
- $HOME/.gradle/wrapper/
30+
31+
before_install:
32+
- chmod +x gradlew
33+
34+
install:
35+
- ./gradlew assemble --info --no-daemon
36+
37+
script:
38+
- ./gradlew check --info --no-daemon
39+
40+
notifications:
41+
email: false
42+
43+
git:
44+
quiet: true

appveyor.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: "{branch} {build}"
2+
3+
clone_depth: 5
4+
5+
environment:
6+
matrix:
7+
- JAVA_HOME: C:\Program Files (x86)\Java\jdk1.8.0
8+
- JAVA_HOME: C:\Program Files\Java\jdk9
9+
- JAVA_HOME: C:\Program Files\Java\jdk11
10+
- JAVA_HOME: C:\Program Files\Java\jdk12
11+
12+
matrix:
13+
fast_finish: true
14+
15+
build:
16+
verbosity: detailed
17+
18+
build_script:
19+
- gradlew.bat assemble --info --no-daemon
20+
21+
test_script:
22+
- gradlew.bat check --info --no-daemon

src/main/kotlin/com/tschuchort/compiletesting/KotlinCompilation.kt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ class KotlinCompilation {
6767
/** Annotation processors to be passed to kapt */
6868
var annotationProcessors: List<Processor> = emptyList()
6969

70+
/** Print verbose logging info */
71+
var verbose: Boolean = true
72+
7073
/**
7174
* Helpful information (if [verbose] = true) and the compiler
7275
* system output will be written to this stream
@@ -82,17 +85,14 @@ class KotlinCompilation {
8285
/** Make kapt correct error types */
8386
var correctErrorTypes: Boolean = true
8487

85-
/** Print verbose logging info */
86-
var verbose: Boolean = true
87-
8888
/** Suppress all warnings */
8989
var suppressWarnings: Boolean = false
9090

9191
/** All warnings should be treated as errors */
9292
var allWarningsAsErrors: Boolean = false
9393

9494
/** Report locations of files generated by the compiler */
95-
var reportOutputFiles: Boolean = false
95+
var reportOutputFiles: Boolean = verbose
9696

9797
/** Report on performance of the compilation */
9898
var reportPerformance: Boolean = false
@@ -329,7 +329,6 @@ class KotlinCompilation {
329329
}
330330
else {
331331
log("Using option -no-jdk. Kotlinc won't look for a JDK.")
332-
333332
it.noJdk = true
334333
}
335334

0 commit comments

Comments
 (0)