forked from WrenSecurity/wrenig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
76 lines (76 loc) · 3.66 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 "[email protected]"
- git checkout -f $TRAVIS_BRANCH
- git tag -f $git_version && git tag -d $git_version
- mvn -q -B -DreleaseVersion="$git_version" -DtagNameFormat="@{project.version}" -DignoreSnapshots=true -DpushChanges=false -DscmCommentPrefix="[ci skip] $TRAVIS_REPO_SLUG " -DskipTests -Darguments=-DskipTests -Dresume=false clean release:prepare
- git push --quiet --force https://[email protected]/$TRAVIS_REPO_SLUG.git >/dev/null 2>&1
- git push --quiet --force https://[email protected]/$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: eh6zJBoNPHeaCVxW3/+hRnI/IkxJIexL1Sika91Gh6e4gSe0QehV1q2czeHESJcVFZssih1ErT+P1o9Gzxhoo+P36syWxLEMF0yBhTPW1OCIfx0qocI79PBwQSTsNaMUWFeSnX0mU/9rmkcfAa0kC8pZjRGxW4tZQEs1wsrs5J9AayEj2urfaZuak6WhkwXb49A9Mespt17bI+KM8SiOBJQBdugWMzVU9plq5MaT3zIjeR7c52c6f3L6LFK/SmuV8mKqPudqLF7LigFSH0BNkwDJBYutcSlryEcUusJ4fBt1OIE2tslDi3Xl1YijlrW+vG+Asdp60RUuBx4FA79W+FrA/3AwxQYbPkJS+rEhAwLKT+efxHgnBKGtv3TaY/jnittO9CKZqbO5n7Cm021OCvDisrHv6o2y+yqEPn1uJtJw4T3MHhTU/mWhRijxHZB9J/cVMHuCzJ3eo1vd2Lkzck8pzVuEGMnx2VR+U3tkIwYfZVgnlDsh9m5cZGrkPatQNriW5eTMdX/a7MvHQBUbKMj/GsJeDqfjrabUqlbHryfYEDqP/fuMZEGWAzzMFAu8qu/naT6d4U22nvtrxGtSFSzTzhAXTWO/vBG1TQk+tYy2T908p/xPmtjlYtnL1kwheratDIY1tKI3rVXKfiElg17RbFv24tIbSdYxUavhpR4=
skip_cleanup: true
overwrite: true
file_glob: true
file:
- "openig-war/target/*.war"
- "openig-docker/target/Dockerfile"
on:
repo: OpenIdentityPlatform/OpenIG
tags: false
branch:
- master
- travis
after_deploy:
- echo 'after_deploy'
- echo 'build and push Docker'
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- docker build ./openig-docker/target -t $DOCKER_USERNAME/openig -t $DOCKER_USERNAME/openig:$git_version
- docker push $DOCKER_USERNAME/openig:$git_version
- docker push $DOCKER_USERNAME/openig
- os: linux
jdk: oraclejdk8
- os: osx
osx_image: xcode9.1
allow_failures:
- os: osx
branches:
except:
- /[0-9]+\.[0-9]+\.[0-9]+$/
notifications:
email:
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 -DskipTests -Dmaven.javadoc.skip=true clean -f OpenAM/OpenDJ/forgerock-parent
- mvn -q -B -DskipTests -Dmaven.javadoc.skip=true install -f OpenAM/OpenDJ -P\!distribution
- mvn -q -B -DskipTests -Dmaven.javadoc.skip=true clean -f OpenAM/OpenDJ -P\!distribution
- mvn -q -B -DskipTests -Dmaven.javadoc.skip=true install -f OpenAM
- mvn -q -B -DskipTests -Dmaven.javadoc.skip=true clean -f OpenAM
script:
- mvn -q -B install