Skip to content

Commit

Permalink
Integrate helloworld project with Travis CI (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdeepd authored and tovbinm committed Feb 7, 2019
1 parent 78bb3b9 commit 533c65d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ jobs:
sed -i 's/\\n$//g' "$TESTS_FILES_PREFIX"*
popd
./gradlew scalaStyle testScoverageClasses --parallel
- stage: 'compile helloworld project'
name: 'compile helloworld project'
script: |
cd helloworld && ./gradlew scalaStyle testScoverageClasses --parallel
- stage: 'Build'
name: 'Build Part 1'
script: |
Expand Down Expand Up @@ -68,3 +72,6 @@ jobs:
echo -e "Test files running on this container : `eval $COUNT_TEST_FILE_CMD`\n$TEST_FILES\n"
./gradlew reportScoverage
name: 'Build Part 4'
- script: |
cd helloworld && ./gradlew reportScoverage
name: 'Build - helloworld'
6 changes: 6 additions & 0 deletions helloworld/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ buildscript {
plugins {
id 'com.github.johnrengelman.shadow' version '2.0.4'
id 'com.commercehub.gradle.plugin.avro' version '0.8.0'
id 'org.scoverage' version '2.3.0'
}
repositories {
jcenter()
Expand Down Expand Up @@ -40,6 +41,7 @@ ext {
scalatestVersion = '3.0.0'
transmogrifaiVersion ='0.5.0'
collectionsVersion = '3.2.2'
scoveragePluginVersion = '1.3.1'
mainClassName = "com.salesforce.dummy.DummyMain"
}

Expand All @@ -53,6 +55,8 @@ configurations {
dependencies {
// Scala
zinc 'com.typesafe.zinc:zinc:0.3.15'
scoverage "org.scoverage:scalac-scoverage-plugin_$scalaVersion:$scoveragePluginVersion"
scoverage "org.scoverage:scalac-scoverage-runtime_$scalaVersion:$scoveragePluginVersion"
scalaLibrary "org.scala-lang:scala-library:$scalaVersion.$scalaVersionRevision"
scalaCompiler "org.scala-lang:scala-compiler:$scalaVersion.$scalaVersionRevision"
compile "org.scala-lang:scala-library:$scalaVersion.$scalaVersionRevision"
Expand All @@ -74,6 +78,8 @@ dependencies {
// Test
testCompile "org.scalatest:scalatest_$scalaVersion:$scalatestVersion"
testCompile "junit:junit:${junitVersion}"
testCompile "org.scoverage:scalac-scoverage-plugin_$scalaVersion:$scoveragePluginVersion"
testCompile "org.scoverage:scalac-scoverage-runtime_$scalaVersion:$scoveragePluginVersion"
}

configurations.all {
Expand Down

0 comments on commit 533c65d

Please sign in to comment.