-
Notifications
You must be signed in to change notification settings - Fork 0
/
shippable.yml
35 lines (33 loc) · 1.35 KB
/
shippable.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
language: java
jdk:
- openjdk11
services:
- mongodb
env:
global:
# AWS_ACCESS_KEY and AWS_SECRET_ACCESS_KEY
- secure: djIyZ4gdE5yUJ2TwWYL3rCnMLuPwt8iEWGgWsGVpwupEwpH5Z0hBfALuPailX9SuBNUzCSQDXOGwEzDGE03I4rYEaBzcKx2xJOiDCwZ8rqEzZyV3QeV6zmYEHtgB3sa8gi+9CUCfZOwXDY4/3UiVgYMhEgwfBI5PaYjNWKDUVfpRmVac3HWHrRdyaSWie2NCGq4UkfYwwvPyt5BFW6a15Elpaq7og/e9rC9O99IIi93pw/B36XsAyf4sIi19t+tPyaFygdQRCw/wA7SnJxUs8zG5SFuCBdKFC+8zdwSksO+VBDUFdRoHpCv2nES6ytLPl36Rw7ZyMnhJSomlV189qQ==
- MVN_ARGS=""
build:
cache: true
cache_dir_list:
- $HOME/.m2
ci:
- mkdir -p shippable/testresults
- mvn --batch-mode clean
# Only deploy for main & release-2.0.x, otherwise just verify for branches and PRs
- if [[ $BRANCH == "main" || $BRANCH == "release-2.0.x" ]] && [[ $IS_PULL_REQUEST != true ]]; then mvn --batch-mode --update-snapshots -Pshippable deploy; fi
- if [[ $BRANCH != "main" && $BRANCH != "release-2.0.x" ]] && [[ $IS_PULL_REQUEST != true ]]; then mvn --batch-mode --update-snapshots -Pshippable verify; fi
- if [[ $IS_PULL_REQUEST == true ]]; then mvn --batch-mode --update-snapshots -Pshippable verify; fi
integrations:
notifications:
- integrationName: hipchat
type: hipchat
recipients:
- '#Everyone'
- '#Java%20Lava'
branches:
only:
- main
on_success: always
on_failure: always