novus/salat — pull request #34 by gildegoma (2012-04-06 00:05:33+00:00)
Title: Integrate with Travis-CI

Since Travis CI now [officially supports Scala](http://about.travis-ci.org/blog/announcing_support_for_java_scala_and_groovy_on_travis_ci/), I invite you to configure both branches 'master' and '0.0.8_2.9.0-1', to get all the benefits of this amazing Continuous Integration platform.

Since Salat branches support only one specific version of Scala, I had to override defaults in `.travis.yml`. If in the future the master branch supports a matrix of Scala versions, you can easily configure Travis to run a specific build for each version (see [Scalatra example](https://github.com/scalatra/scalatra/commit/3ddbf152b4ab33872cd8f7a0efa9b0b3b77f81c1)
or this Guide [Building a Scala project with Travis](http://about.travis-ci.org/docs/user/languages/scala/)).

The current status of salat is [![Build Status](https://secure.travis-ci.org/gildegoma/salat.png)](http://travis-ci.org/gildegoma/salat) on master branch, but [1 test (out of 188) currently fails on branch 0.0.8_2.9.0-1](http://travis-ci.org/#!/gildegoma/salat/builds/1028300).... +1 for Travis ;-)

Note: My Salat fork has been heavily used during the creation of Travis builder for Scala, and I take the opportunity of this PR to give my congratulations to all Salat contributors. With such nice set of Tests/Specifications, I think it really make sense to execute CI process on each community commits. One more special thanks to you Rose, for disabling the debug verbosity, see gildegoma/salat@08b51357ca8c32dc151a0dd93d8f2cee6ece3da0)

One more minor remark about Travis Scala builder output. When the build starts, lines 7-9 are a bit misleading:

```
$ export SCALA_VERSION=2.9.1
$ export TRAVIS_SCALA_VERSION=2.9.1
Using Scala 2.9.1$ sbt test
```

Don't be afraid `buildScalaVersion` defined in `project/SalatBuild.scala` is not hidden at all, and will be correctly used. This claimed version 2.9.1 is currently the default Scala version used by Travis builder default script: `sbt ++SCALA_VERSION test`. Since we redefine the build script as `sbt test`, such variables are no more relevant in this case. I'll check soon with Travis core team, to improve this misleading message *Using Scala 2.9.1...*