-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
26 lines (26 loc) · 834 Bytes
/
.travis.yml
File metadata and controls
26 lines (26 loc) · 834 Bytes
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
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:
- lance.gatlin@s-mach.net
script:
# Fix issue where JDK env from matrix above not picked up by travis
- jdk_switcher use $JDK
- sbt ++$TRAVIS_SCALA_VERSION coverage test coverageReport -J-Xmx4g
after_success:
- sbt coveralls
- 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