Skip to content

Commit

Permalink
add scoverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Teo Stocco committed Aug 6, 2016
1 parent e99620d commit 4b3ed92
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM java:8
ENV SBT_VERSION 0.13.12
ENV SCALA_VERSION 2.11.8
ENV COURSIER_VERSION 1.0.0-M12-1
ENV SCOVERAGE_VERSION 1.3.5

# scala
RUN \
Expand All @@ -17,11 +18,18 @@ RUN \
apt-get update && \
apt-get install sbt

# coursier
# ivy2 setup
RUN \
mkdir -p /root/.sbt/${SBT_VERSION%.*}/plugins && \
echo 'addSbtPlugin("io.get-coursier" % "sbt-coursier" % "'$COURSIER_VERSION'")' >> /root/.sbt/${SBT_VERSION%.*}/plugins/plugins.sbt && \
sbt sbtVersion
echo '
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "'$COURSIER_VERSION'")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "'$SCOVERAGE_VERSION'")
' >> /root/.sbt/${SBT_VERSION%.*}/plugins/plugins.sbt && \
mkdir -p project && \
echo 'sbt.version='$SBT_VERSION > project/build.properties && \
echo 'scalaVersion := "'$SCALA_VERSION'"' > build.sbt && \
sbt sbtVersion && \
rm -rf project build.sbt target

WORKDIR /root

0 comments on commit 4b3ed92

Please sign in to comment.