forked from FasterXML/jackson-module-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (44 loc) · 1.59 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
sudo: false
cache:
directories:
- $HOME/.ivy2
- $HOME/.sbt
language: scala
matrix:
include:
# Test Scala 2.10 and 2.11 with both JDK 6 and 8
- scala: 2.10.7
jdk: openjdk7
- scala: 2.11.8
jdk: openjdk7
- scala: 2.10.7
jdk: oraclejdk8
- scala: 2.11.8
jdk: oraclejdk8
# Scala 2.12+ only supports JDK 8+
- scala: 2.12.8
jdk: oraclejdk8
- scala: 2.12.8
jdk: openjdk11
sbt_args: "'set resolvers += \"Sonatype OSS Snapshots\" at \"https://oss.sonatype.org/content/repositories/snapshots\"'"
before_script:
- export JAVA7_HOME=$(jdk_switcher home openjdk7)
after_success:
- >
test "${TRAVIS_PULL_REQUEST}" = 'false' && test "${TRAVIS_JDK_VERSION}" = 'oraclejdk7' -o "${TRAVIS_SCALA_VERSION}" = '2.12.4' &&
sbt 'set resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"'
'set credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", System.getenv("SONATYPE_USER"), System.getenv("SONATYPE_PASS"))'
++${TRAVIS_SCALA_VERSION}
publish
branches:
only:
- master
- "2.6"
- "2.7"
- "2.8"
env:
global:
- secure: "EAnt75OQNWHWvZomCAb8G5IdqcVMR0NqzngOKFOeSsjaB2CFVtfYoAq3dzp0utBqiOnWe1l5TCmcFUzMrkw+nuWbScKXYyiE6268LcA02/JBkAxnOcOo/6/xVh3oX0NhrBN5BSkJF5Hz5ffDXZArGM30s7FFhiijcmuo7J4/o0E="
- secure: "LYBEb/y1T1yb3CsNZe0Q+yUUqhYblvW8lMWXxy/Ozho+0FHA67TzCpGO9SOBVvp0Cewu2BzOeW6/Z9DZfOKL88zSvXT9HjSPRc7MEd17+LnqeTNmxTSz3RztXnyYqs/YPi7se+HscwYytnJKS611KZ0m1QkI4IrUcBS0Xib6ZhQ="
notifications:
email: [email protected]