aboutsummaryrefslogtreecommitdiff
path: root/project/Build.scala
diff options
context:
space:
mode:
authorVlad Ureche <vlad.ureche@gmail.com>2014-02-16 02:45:52 +0100
committerVlad Ureche <vlad.ureche@gmail.com>2014-02-16 03:47:40 +0100
commit1384048d0c01b5071ccc68e57fe49e802ed7c61b (patch)
tree29491474cd0142e1a59522bb7b69a5c17a47932a /project/Build.scala
parent153146c6774a5a06b1fbe7dc0ceb21b0e0a5e657 (diff)
downloaddotty-1384048d0c01b5071ccc68e57fe49e802ed7c61b.tar.gz
dotty-1384048d0c01b5071ccc68e57fe49e802ed7c61b.tar.bz2
dotty-1384048d0c01b5071ccc68e57fe49e802ed7c61b.zip
Add Scalac scanning to the Travis CI build
And silence some of the error messages we print so the build log doesn't go above 4MB (Travis' limit)
Diffstat (limited to 'project/Build.scala')
-rw-r--r--project/Build.scala11
1 files changed, 10 insertions, 1 deletions
diff --git a/project/Build.scala b/project/Build.scala
index a82fc3484..e268a54ee 100644
--- a/project/Build.scala
+++ b/project/Build.scala
@@ -4,6 +4,8 @@ import Process._
object DottyBuild extends Build {
+ val TRAVIS_BUILD = "dotty.travis.build"
+
val defaults = Defaults.defaultSettings ++ Seq(
// set sources to src/, tests to test/ and resources to resources/
scalaSource in Compile := baseDirectory.value / "src",
@@ -45,7 +47,14 @@ object DottyBuild extends Build {
// dotty itself needs to be in the bootclasspath
val fullpath = ("-Xbootclasspath/a:" + bin) :: path.toList
// System.err.println("BOOTPATH: " + fullpath)
- fullpath
+
+ val travis_build = // propagate if this is a travis build
+ if (sys.props.isDefinedAt(TRAVIS_BUILD))
+ List(s"-D$TRAVIS_BUILD=${sys.props(TRAVIS_BUILD)}")
+ else
+ List()
+
+ travis_build ::: fullpath
}
)