forked from OpenIdentityPlatform/OpenAM-JEE-Agents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
76 lines (76 loc) · 3.8 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
language: java
git:
depth: 9999
matrix:
include:
- os: linux
jdk: openjdk8
sudo: required
services:
- docker
before_deploy:
- git config --local user.name "Open Identity Platform Community" && git config --local user.email "open-identity-platform-openam@googlegroups.com"
- git checkout -f $TRAVIS_BRANCH
- git tag -f $git_version && git tag -d $git_version
- mvn -B -q -DreleaseVersion="$git_version" -DtagNameFormat="@{project.version}" -DignoreSnapshots=true -DpushChanges=false -DscmCommentPrefix="[ci skip] " -DskipTests -Darguments=-DskipTests clean release:prepare
- git log `git describe --tags --abbrev=0 HEAD^ --always`..HEAD --oneline;git push --quiet --force https://$GITHUBKEY@github.com/$TRAVIS_REPO_SLUG.git #>/dev/null 2>&1
- git push --quiet --force https://$GITHUBKEY@github.com/$TRAVIS_REPO_SLUG.git $git_version #>/dev/null 2>&1
deploy:
provider: releases
draft: false
prerelease: false
target_commitish: $(git rev-list -n 1 $git_version)
tag_name: $git_version
name: $git_version
body: "compare: $(git rev-list -n 1 $git_version_last)...$(git rev-list -n 1 $git_version)"
api_key:
secure: xSBmIHb8xDN3QJYAHEeJ3RMcROGuquqTXB3PZSNPNesNwPGuZpj9gSHfxp8kCnb17jMImGVlZ1MZSrdbc+MvWi39sWWQHHwbLUzwd+5phSanzMzhHLL6NB93rNCzBzatwNyWjpniVOrStENin38HenO4Rs3z6LFMJmUd4La2Wz41LWNiNhU5ifqwYbxZ7EPuSV9KTGH1P7IUfCLI8u07D4fZF1es4KdzPJFtj3xrLgxaa13vkiC8VpFoCjG2UfNhYplawerpCgVIEpxKDbMPQ32UjZqeSjPxQfR7c0yyceL69Krgm7Go/mtflPqDJmMs10y9oThDrIm5AXtxEjzwTCukA5USBGYbii0mVYxUTMNs36ogO48t2BcHzT/9iMGn8o/h2UGQUUnm58nLEYg7B6kRkSRSPFhL+6zrvYm1ByqIon0dpMrHP/L7Mu5MiVzh0SbZoXmOwT1MdksE7BOI0/ZWRvK9NqtnLfcPCpqlNAomFaZAaHw5U3r0GUVhZ+SWJo0PbvWMFxUe+rNwr+h4pI8GoR3c1u+B2Max8DmveWoGgkyaWxplJIJIZb5wFEdTVG/xdoo0t7dgAKrbkELkSPsYM2ftX5J4EQxqAJfnleIdptKWYFU3VHxHrC1e4uQvKHwIKLVZJixrkaN0QlIkt3v3zm/ZU4C4OOUZtPSo9rE=
skip_cleanup: true
overwrite: true
file_glob: true
file:
- "jee-agents-distribution/jee-agents-distribution-appserver-v10/target/*.zip"
- "jee-agents-distribution/jee-agents-distribution-jboss-v42/target/*.zip"
- "jee-agents-distribution/jee-agents-distribution-jboss-v7/target/*.zip"
- "jee-agents-distribution/jee-agents-distribution-jetty-v61/target/*.zip"
- "jee-agents-distribution/jee-agents-distribution-jetty-v7/target/*.zip"
- "jee-agents-distribution/jee-agents-distribution-jsr196/target/*.zip"
- "jee-agents-distribution/jee-agents-distribution-tomcat-v6/target/*.zip"
on:
repo: OpenIdentityPlatform/OpenAM-JEE-Agents
tags: false
branch:
- master
- travis
after_deploy:
- echo 'after_deploy'
- os: linux
jdk: oraclejdk8
- os: osx
osx_image: xcode9.1
allow_failures:
- os: osx
branches:
except:
- /[0-9]+\.[0-9]+\.[0-9]+$/
notifications:
email:
- open-identity-platform-openam@googlegroups.com
before_install:
- date -u
- uname -a
- # if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then brew install rpm wine; else sudo apt-get install -y rpm wine; fi
- git fetch -t
- export git_version_last="$(git describe --abbrev=0 --tags --always)"
- export git_version="$(echo $git_version_last | awk -F . '{ printf "%d.%d.%d", $1,$2,$3 + 1}')"
- env | sort
- git log `git describe --tags --abbrev=0 HEAD^ --always`..HEAD --oneline
install:
- mvn -q -B -DskipTests -Dmaven.javadoc.skip=true install -f OpenAM/OpenDJ/forgerock-parent
- mvn -q -B clean -f OpenAM/OpenDJ/forgerock-parent
- mvn -q -B -DskipTests -Dmaven.javadoc.skip=true install -f OpenAM/OpenDJ -P '!man-pages,!distribution'
- mvn -q -B clean -f OpenAM/OpenDJ -P '!man-pages,!distribution'
- mvn -q -B -DskipTests -Dmaven.javadoc.skip=true install -f OpenAM
- mvn -q -B clean -f OpenAM
script:
- mvn -q -B install