Skip to content

Instantly share code, notes, and snippets.

@joscha
Created May 27, 2014 18:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joscha/82cf74a6535407a43668 to your computer and use it in GitHub Desktop.
Save joscha/82cf74a6535407a43668 to your computer and use it in GitHub Desktop.
Sample travis file for typesafe activator
language: java
env:
- ACTIVATOR_VERSION=1.1.3 \
ACTIVATOR_ZIP_FILE=typesafe-activator-${ACTIVATOR_VERSION}-minimal.zip \
ACTIVATOR_ZIP_URL=http://downloads.typesafe.com/typesafe-activator/${ACTIVATOR_VERSION}/${ACTIVATOR_ZIP_FILE} \
ACTIVATOR_BIN=${TRAVIS_BUILD_DIR}/activator-${ACTIVATOR_VERSION}-minimal/activator
install:
- wget ${ACTIVATOR_ZIP_URL}
- unzip -q ${ACTIVATOR_ZIP_FILE}
script:
- "cd $TRAVIS_BUILD_DIR/code && ${ACTIVATOR_BIN} test"
notifications:
# Email notifications are disabled to not annoy anybody.
email: false
@joscha
Copy link
Author

joscha commented May 27, 2014

where code contains your play application...

@richdougherty
Copy link

It might be possible to replace all the activator stuff with just "language: scala". That should still work fine for Java code.

@joscha
Copy link
Author

joscha commented Jun 10, 2014

cc @richdougherty - thanks, it actually does:

language: scala
scala:
  - 2.11.1
script:
  - "cd $TRAVIS_BUILD_DIR/code"
  - "sbt ++$TRAVIS_SCALA_VERSION test"
  - "sbt ++$TRAVIS_SCALA_VERSION publish-local"
notifications:
  email: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment