forked from hygieia/hygieia-codequality-jenkins-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (29 loc) · 876 Bytes
/
.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
language: java
jdk:
- openjdk8
branches:
only:
- master
- gerrit-integration
- "/^v[0-9]+\\.[0-9]+\\.[0-9]+.*$/"
install: true
before_script:
- sudo chown -R $USER:$GROUP $TRAVIS_BUILD_DIR
script:
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then mvn clean install -q; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then
cp ./src/devops/deploy-snapshot.sh . && ./deploy-snapshot.sh; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [[ "$TRAVIS_BRANCH" =~ ^v[0-9]+\.[0-9]+\.[0-9]+.*$
]]; then cp ./src/devops/release.sh . && ./release.sh; fi
notifications:
webhooks:
urls: https://webhooks.gitter.im/e/48597b0f75dd571734bc
on_success: always
on_failure: always
on_start: always
email:
recipients:
on_success: always
on_failure: always