forked from sbt/sbt-launcher-package
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (59 loc) · 1.76 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
sudo: false
dist: trusty
group: stable
language: scala
env:
global:
- SBT_VER=1.2.4
matrix:
include:
## build using JDK 8, test using JDK 8
- script:
- sbt -Dsbt.build.version=$SBT_VER universal:packageBin
- cd citest && ./test.sh
jdk: oraclejdk8
## build using JDK 8, test using JDK 8, on macOS
- script:
- sbt -Dsbt.build.version=$SBT_VER universal:packageBin
- cd citest && ./test.sh
## https://github.com/travis-ci/travis-ci/issues/2316
language: java
os: osx
osx_image: xcode9.2
## build using JDK 8, test using OpenJDK 11
- env:
- TRAVIS_JDK=openjdk@1.11.0
- JABBA_HOME=/home/travis/.jabba
before_install:
- unset _JAVA_OPTIONS
- curl -sL https://raw.githubusercontent.com/shyiko/jabba/0.10.1/install.sh | bash && . ~/.jabba/jabba.sh
script:
- sbt -Dsbt.build.version=$SBT_VER universal:packageBin
- $JABBA_HOME/bin/jabba install $TRAVIS_JDK && export JAVA_HOME="$JABBA_HOME/jdk/$TRAVIS_JDK" && export PATH="$JAVA_HOME/bin:$PATH" && java -Xmx32m -version
- cd citest && ./test.sh
jdk: oraclejdk8
- script:
- sbt -Dsbt.build.version=$SBT_VER rpm:packageBin debian:packageBin
addons:
apt:
packages:
- fakeroot
- rpm
jdk: oraclejdk8
scala:
- 2.10.7
before_install:
# https://github.com/travis-ci/travis-ci/issues/8408
- unset _JAVA_OPTIONS
- if [[ "$TRAVIS_OS_NAME" = "osx" ]]; then
brew update;
brew install sbt;
fi
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
- $HOME/.jabba/jdk
before_cache:
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete