Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
multiproject setup, coverage profiling integration, stubed api subpro…
Browse files Browse the repository at this point in the history
…ject
  • Loading branch information
maizy committed Mar 6, 2016
1 parent 3c8db60 commit 4a00a70
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 11 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ language: scala
jdk:
- oraclejdk8
scala:
- 2.11.7
script: ./run_ci_tests.sh
- 2.11.7
script:
- sbt ++$TRAVIS_SCALA_VERSION clean coverage test coverageReport
- sbt ++$TRAVIS_SCALA_VERSION coverageAggregate
after_success:
- sbt ++$TRAVIS_SCALA_VERSION coveralls
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# cheesecake

[![Build Status](https://travis-ci.org/maizy/cheesecake.svg?branch=master)](https://travis-ci.org/maizy/cheesecake)
[![Coverage Status](https://coveralls.io/repos/github/maizy/cheesecake/badge.svg?branch=master)](https://coveralls.io/github/maizy/cheesecake?branch=master)

_TBA_
23 changes: 23 additions & 0 deletions api/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name := "cheesecake-api"
organization := "ru.maizy"
version := "0.0.1"
scalaVersion := "2.11.7"

scalacOptions ++= Seq(
"-target:jvm-1.8",
"-encoding", "UTF-8",
"-deprecation",
"-unchecked",
"-explaintypes",
"-Xfatal-warnings",
"-Xlint"
)


// Scalastyle setup
lazy val testScalastyle = taskKey[Unit]("testScalastyle")
lazy val testScalastyleInCompile = taskKey[Unit]("testScalastyleInCompile")
testScalastyle := org.scalastyle.sbt.ScalastylePlugin.scalastyle.in(Test).toTask("").value
testScalastyleInCompile := org.scalastyle.sbt.ScalastylePlugin.scalastyle.in(Compile).toTask("").value
(test in Test) <<= (test in Test) dependsOn (testScalastyle, testScalastyleInCompile)
scalastyleFailOnError := true
8 changes: 8 additions & 0 deletions api/src/main/scala/ru/maizy/cheesecake/api/Stub.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package ru.maizy.cheesecake.api

/**
* Copyright (c) Nikita Kovaliov, maizy.ru, 2016
* See LICENSE.txt for details.
*/

case class Stub(val name: String) // FIXME: tmp
7 changes: 7 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name := "cheesecake"
organization := "ru.maizy"
version := "0.0.1"
scalaVersion := "2.11.7"

lazy val api = project.in(file("api"))
lazy val server = project.in(file("server")).dependsOn(api)
File renamed without changes.
4 changes: 4 additions & 0 deletions server/project/plugins.sbt → project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.1")
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.0.6")

addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.8.0")

addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.3.5")

addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.1.0")
9 changes: 0 additions & 9 deletions run_ci_tests.sh

This file was deleted.

File renamed without changes.

0 comments on commit 4a00a70

Please sign in to comment.