-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
37 lines (37 loc) · 1.19 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: scala
# This is a workaround for this issue: https://goo.gl/FexVa7
addons:
hostname: short-hostname
matrix:
include:
- scala: 2.12.1
env: JDK=oraclejdk8
- scala: 2.11.8
env: JDK=openjdk6
notifications:
email:
recipients:
script:
# Fix issue where JDK env from matrix above not picked up by travis
- jdk_switcher use $JDK
# Use plz instead of ++ from sbt-doge plugin to respect subproject crossScalaVersions
- sbt "plz $TRAVIS_SCALA_VERSION test" -J-Xmx4g
after_success:
- >
test "${TRAVIS_SCALA_VERSION}" = '2.12.1' &&
sbt clean coverage test coverageReport -J-Xmx4g
- >
test "${TRAVIS_SCALA_VERSION}" = '2.12.1' &&
sbt coverageAggregate
- >
test "${TRAVIS_SCALA_VERSION}" = '2.12.1' &&
sbt coveralls
- >
test "${TRAVIS_SCALA_VERSION}" = '2.12.1' &&
sbt codacyCoverage
#- >
# test "${TRAVIS_PULL_REQUEST}" = 'false' &&
# test "${TRAVIS_BRANCH}" == 'master' &&
# test "${TRAVIS_JDK_VERSION}" = 'openjdk6' &&
# sbt 'set credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", System.getenv("SONATYPE_USER"), System.getenv("SONATYPE_PASS"))' publish