-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathbuild.sbt
More file actions
45 lines (27 loc) · 1.02 KB
/
build.sbt
File metadata and controls
45 lines (27 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import sbt.inc.Analysis
name := "courier-flowtype-generator-test"
packagedArtifacts := Map.empty // do not publish
libraryDependencies ++= Seq(
ExternalDependencies.JodaTime.jodaTime)
autoScalaLibrary := false
crossPaths := false
// Test Generator
forkedVmCourierGeneratorSettings
forkedVmCourierMainClass := "org.coursera.courier.FlowtypeGenerator"
forkedVmCourierClasspath := (dependencyClasspath in Runtime in flowtypeGenerator).value.files
forkedVmSourceDirectory := (sourceDirectory in referenceSuite).value / "main" / "courier"
forkedVmCourierDest := file("flowtype") / "testsuite" / "src" / "flowtype-bindings"
forkedVmAdditionalArgs := Seq("STRICT")
(compile in Compile) := {
(forkedVmCourierGenerator in Compile).value
Analysis.Empty
}
lazy val npmTest = taskKey[Unit]("Executes NPM test")
npmTest in Test := {
(compile in Compile).value
val result = """./flowtype/testsuite/full-build.sh"""!
if (result != 0) {
throw new RuntimeException("NPM Build Failed")
}
}
test in Test := (npmTest in Test).value