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.71 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:
- oraclejdk8
sudo: required
install: true
notifications:
email: false
branches:
only:
- master
- development
services:
- docker
addons:
sonarcloud:
organization: "tbmelabs-github"
token:
secure: "XicCVyfquanzSNztOKMG93NBCcnhlFc3XNOqZ9rpPiWVLFGEoxXcLHoKRoiXihklMumqgfRJoRMmD3NIFB4Fn3DAzo4ZUhvxgoaNjM8UcGiUhwrtyu0Xfn0V9vpNVPVDZiAeW8vG3tNdxa2k9Ro1jxD10KdcrxOObzofcqSyIJK/vko7rdL5RDjHx+XlJCl0TAgInCNQkiVyLVKavCvq3rWN7OKarlWNzMIPUV1DHNEN3Yoo9A1AcQu9rVMCwUs6afOUU2jCCxUenDxxyv8g5QYPkyeiUFsNVr6xo6uF7LfasTSBeKHTrDAiqC11nOcqg/QRYGrRa0HJI3Mgc/8L1BjFR/spTOJGh/bn4hcWgIZNYtd2MNh/7GqRtLedb4vmGSlfLSu5/YTODQOXlppFyvI+n+yNInCdsaySFWswAts7SucUt/ggmx2tsIoi3yvoCEtfCvClhBO4y0UDlgo14RQ64WzmEkchfE8NTmfeUK/f5Aa9G6u58OSys4gm+y/Xk2CMcictC0T2fenHIbEnwyJUrRq84sXbsZsz9qtqNR795kX3DALwBxk+aF3mjxI57taKmpt5G5vrW1A4XkcAjE/+fGCj1q7mvLQz/w8x0DcB6AHHir9OYMYG1X0X1c3qYlqU9nQiztJ543/h7C9VKSA5J7P1RgVcg8tOGEdc7nw="
deploy:
- provider: script
script: mvn dockerfile:push
on:
branch: development
env:
global:
- secure: "wG/uuWdxuIIMjaM4s9cNwWOYoz6Po9CtHEHBhG0GcwqQ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gRQiPUvUrSP9NbpXsOuxGVlC390xHohAWBvGTQlzTH9EXjBKDKhwGNmfILSx3moUdj1eOuUex2qiRPtnyf+Ii4IVC7ITMOhXuCTYuiBzHR+/7Kn/zw8vq4pCsvCcrTcO8NLkczJ/yC9ykvBJxair4/22NBTlYF00ctk+CdgCmip9OA0tZ7HTcOvn/KpPvtMiX/xdeF2dHpMp39mE6jkMH60krHIOLoBgst2jaZ9yOzBx3ourBYDXenvDVjj84IXrVhQ="
# ^^ 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'