Skip to content

Commit

Permalink
CI build for HelloWorld (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdeepd authored and tovbinm committed Jan 26, 2019
1 parent d2b195b commit 6ee7cc7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,26 @@ jobs:
- *open-jdk
- *restore-gradle-cache
- run:
name: Clone repo & compile project
name: Compile project
command: java -version && ./gradlew -v && ./gradlew --parallel testScoverageClasses
- *save-gradle-cache
scala-style-hw:
<<: *machine-config
steps:
- checkout
- *open-jdk
- run:
name: Scala style check for HelloWorld
command: cd helloworld && ./gradlew --parallel scalaStyle && cd ..
compile-hw:
<<: *machine-config
steps:
- checkout
- *open-jdk
- run:
name: Compile Helloworld project
command: cd helloworld && ./gradlew --parallel testScoverageClasses && cd ..

test:
<<: *machine-config
parallelism: 4
Expand Down Expand Up @@ -85,6 +102,8 @@ workflows:
jobs:
- scala-style
- compile
- scala-style-hw
- compile-hw
- test:
requires:
- scala-style
Expand Down
8 changes: 8 additions & 0 deletions helloworld/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ sourceSets {
srcDir 'build/generated-main-avro-java'
}
}
scoverage {
runtimeClasspath += sourceSets.main.output
compileClasspath += sourceSets.main.output
}
testScoverage {
runtimeClasspath += sourceSets.main.output + sourceSets.test.output
compileClasspath += sourceSets.main.output + sourceSets.test.output
}
}

wrapper {
Expand Down

0 comments on commit 6ee7cc7

Please sign in to comment.