Permalink
0a9877f Mar 16, 2016
29 lines (28 sloc) 1.73 KB
language: scala
scala:
- 2.10.6
- 2.11.7
jdk: oraclejdk7
sudo: false
services:
- memcached
- redis
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot/
script:
- if [ "$TRAVIS_SCALA_VERSION" = "2.10.6" ]; then sbt ++$TRAVIS_SCALA_VERSION testAll; else sbt ++$TRAVIS_SCALA_VERSION clean coverage testAll && sbt coverageReport && sbt coverageAggregate; fi
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
env:
global:
- secure: "guHisyOGUp5gIQvAFKJVIT4Z1+culpobzVApeEPyevx6pKqrRdlPV/TAAjwJH6a0nG+ejsqXVoF3+VX6u3kKX1w0jvTcKjvCJUmCTShZeToVN1f20A4NzF6S4YnftSrSNR7vzEiJAA64BO408mF5gJ8kFMRCC5+FheTBim9uok0="
- secure: "O41Wnu4KASFdQ87KZ3h8+/IEz8OlqvOhZIYNI04PpoZVLtqU7v2ccmQsnKCTnMeuyz0qxALhpkkjsX23ZhpxzIyDPo35t0LhyLK/UAy2jgFuNltd2E+LdUJgzp4HDpz4m114P3V1E7THKAyj9wzUVAeMfoCJtsWRYj58wHlyiIg="
- secure: "ajHcxM0oVCCKYquH6J6pUVo+Lnv6qmli95Cj+aiyENkIMRY/775jN2LRFjV+X2GdWAWOHJME1ylOQn2acIOshwFIDOz3ygOyZcb7MOLoaAYrDwCXZMgxLHWom4CVmKQOpJswjAjFioEuDWqeLUFK+TATefgQxamznqFQcx3nvpw="
before_install:
- if [[ "$TRAVIS_TAG" =~ ^v.+$ || (( "$TRAVIS_BRANCH" = "master" || "$TRAVIS_BRANCH" = "develop" || "$TRAVIS_BRANCH" = "travis-test") && "$TRAVIS_PULL_REQUEST" = "false") ]] ; then SHOULD_PUBLISH=0; fi
- if (( $SHOULD_PUBLISH == 0)) ; then openssl aes-256-cbc -K $encrypted_ffa7f5a14ad6_key -iv $encrypted_ffa7f5a14ad6_iv -in secrets.tar.enc -out secrets.tar -d; tar xvf secrets.tar; fi
after_success:
- if (( $SHOULD_PUBLISH == 0)) ; then sbt ++$TRAVIS_SCALA_VERSION publishSigned; fi
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then bash <(curl -s https://codecov.io/bash); elif [[ "$TRAVIS_BRANCH" = "master" || "$TRAVIS_BRANCH" = "develop" ]]; then bash <(curl -s https://codecov.io/bash); fi