This repository has been archived by the owner on Nov 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (39 loc) · 2.7 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
language: java
dist: trusty
jdk:
- openjdk11
sudo: required
install: true
notifications:
email: false
branches:
only:
- master
- development
services:
- docker
addons:
sonarcloud:
organization: "tbmelabs-github"
token:
secure: "U1avKkcHaAqulf3IV6ZygqChnRnEQeZGt5OJxCWqPpTX9xvWbrtNOfu7cOXOTHsG1a0NiTa6Jn8dTOlBX+sgLdRJUFm+LT1rg0ckq7pUMtSXzCDpo7zDhKh/EKsQt9yxSZ/MPyovsnVXMC3H/80JA49KESNpTpQqqzyi5uFKHBYO9dWk5LstXqyWjH6aI4zx+QgBvv4G2L/l1wi/DNHsuX/EeVUwkc61ntSM9RgfuLdn7utslv9nYDnFNnvb/iPH2iovkCpr7RyD29RkOo+s91P4bCqnVrwqrkMSHSIfb6+OwGNFiG5bXZklYxn0Yn7Sdz5oxbuTAytBLc/mBLoaqzGipahY3bF2hkz5SdraGZw/r3R468stFohinwYo8SWiT66wkjTMMgwY5YCkP0b/oC1OKkOgH0v7/ukQ2jGQjbJOieFjs4AxvLa1uQN+JidocgLuFXXaDwdrWRZC11tlEEklfAhilK32KhozKv3Gw4e0CuXcJd5JhhPgBco/l0clZY8Z8AeCPvffuhnWErzC5ifnvX7Rx8yNI5Ob6vgOSl5oipTivktnsGm579xZyLdi0C3Dnq/PGfYvBhqXSQIeoh/mUeZ4Lk8O/TnQYAru9F5dq+2rKkAd4VbDoq2IKoxjTPQWIBSx2C0OloP6o0ONSrKtfjhPHJnTraik2Fjr//o="
deploy:
- provider: script
script: mvn dockerfile:push
on:
branch: development
env:
global:
- secure: "ew/ASwDJqxGfYUtMx4eo48m18Yco/IkaSIBBdlL2PHVxpK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A7ih5oEqhUbbsX7/ZXzwGFXfn51S2J3B1ahRPgte1GtIfD4mF0QNN26YoQdoHcWQi8wgQ+jT2nTE4+qiP1iAWmqP31taE1sgNFTm+rsfOV80ACXKMOZ49LSDdAcWI/0GCblAwuD29WJMsPwzpvB52aVsEpUlm4VjdAQdlp3TSinvPIbYiyXxyrlUJrbTJzdWEPyLi9WkIhTdN2nBZSzJCYE9aaQQmSD56uvs1ynqiQft4GQOnjE3+KGSC1jS8XVfIJllqI="
# ^^ DOCKER_PASSWORD
before_script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
script:
- mvn clean install dockerfile:build sonar:sonar
cache:
directories:
- "$HOME/.cache"
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'