forked from sbt/sbt-native-packager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
90 lines (81 loc) · 3.2 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
language: java
scala: 2.12.6
os: linux
jdk: oraclejdk8
addons:
apt:
packages:
- rpm
- fakeroot
sudo: false
cache:
apt: true
directories:
- $HOME/.sbt
- $HOME/.m2
- $HOME/.ivy2
env:
global:
- secure: bK5zEd2s3y+ScGwuGcxlP0tXx83nvurmF/SWuQSmI0A2KRelipGSSY2BTa+URKk9smJusJIZUi72EqEwMHDhxLCfHomjze5BmpJB5Mr3fQI700nxPEA95cbM4Z1G9+K6fYWy2pi5S7Xmz1Sg07bP4sfzyVYlNB20aquLCmB9Llk=
- secure: iY6MLAx39wW8y4uPZxt86FiNkLdrVHaAKCIcp7P35c0Zi1T0aaPTVTwZMS1uJAYs7e3Nh7gv7yU0hZR6t3klYPNjQdS7LHTgITIejBmikkBTkVqfpIYEOyrfDSaT59YlGrBiidegEGnw84kD4dFDmjnUY0ViCwOpJKr0a0Iokls=
- secure: A2zj75lTCnCDUQ8+f7++eKue9990h//F2GljSj4/2MRs+klvvc/+qr+oakjNKdJMvwq15vCE2Oqmc75+s9FrGr5Fv0ujY16ZknHeZjuZONu1UbFp1EpZvYkPnZ5XbCe/4IOijt6RPBfrWod0gMSoEgGsp406vDG+1K+S+1tKNGQ=
before_install:
# travis sets the java options which breaks tests that check the applied memory settings
- unset _JAVA_OPTIONS
- if [[ "$TRAVIS_OS_NAME" = "osx" ]]; then
brew update;
brew install xz;
brew install sbt;
fi
before_script:
- curl -L --create-dirs -o $HOME/.sbt/launchers/1.1.6/sbt-launch.jar http://dl.bintray.com/sbt/maven-releases/org/scala-sbt/sbt-launch/1.1.6/sbt-launch.jar
# job definitions
jobs:
include:
- stage: validate
script: sbt "^validate"
if: type = pull_request OR (type = push AND branch = master)
- stage: scripted
script: sbt "^validateUniversal"
if: type = pull_request OR (type = push AND branch = master)
name: "scripted universal tests"
- script: sbt "^validateJar"
name: "scripted jar tests"
if: type = pull_request OR (type = push AND branch = master)
- script: sbt "^validateBash"
name: "scripted bash tests"
if: type = pull_request OR (type = push AND branch = master)
- script: sbt "^validateAsh"
name: "scripted ash tests"
if: type = pull_request OR (type = push AND branch = master)
- script: sbt "^validateRpm"
name: "scripted rpm tests"
if: type = pull_request OR (type = push AND branch = master)
- script: sbt "^validateDebian"
name: "scripted debian tests"
if: type = pull_request OR (type = push AND branch = master)
- script: sbt "^validateDockerUnit"
name: "scripted docker unit-tests"
if: type = pull_request OR (type = push AND branch = master)
- script: sbt "^validateJdkPackagerTravis"
name: "scripted jdk-packager tests"
if: type = pull_request OR (type = push AND branch = master)
# docker configuration as described in
# https://docs.travis-ci.com/user/docker/
- script: sbt "^validateDocker"
name: "scripted docker integration-tests"
if: type = pull_request OR (type = push AND branch = master)
services: docker
sudo: required
- script: sbt "^validateOSX"
name: "scripted osx tests"
if: type = pull_request OR (type = push AND branch = master)
os: osx
osx_image: xcode8
- stage: release
script:
- openssl aes-256-cbc -K $encrypted_22ffc3d85ef2_key -iv $encrypted_22ffc3d85ef2_iv -in project/key.asc.enc -out project/key.asc -d
- gpg --import project/key.asc
- gem install github_changelog_generator
- sbt releaseFromTravis
if: (tag =~ ^v)