Travis-CI - add another task to the sbt command

156 views Asked by At

I read this:

By default, Travis CI will use

sbt ++$TRAVIS_SCALA_VERSION test

to run your test suite. This can be overridden as described in the general build configuration guide.

But that link gives kilobytes and kilobytes of text that I don't grok.

In two sentences; how to make Travis CI use the following instead:

sbt ++$TRAVIS_SCALA_VERSION test assembly

?

1

There are 1 answers

1
0__ On BEST ANSWER

One has to simply add a script section to .travis.yml, e.g.

language: scala

scala:
  - 2.11.5
  - 2.10.0

script:
  - sbt ++$TRAVIS_SCALA_VERSION test assembly