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: "UMrl1WtulZRJGRipwKF8grda7y7zhk9/OqeJm7CbfZe1kmHkh5rPhBWl0xQe+5QbwsbKpzACtAKTbDHzlnbAHI+Hbu+c2s0517MIpO3ydxmorSHJiE9Jfun7dIPlW+PU/nOQrLrcKWDQ65YuZ8UCSxFfDAgYNfbZMAtiqX7RUauD0YUQGv7Zi1+c9Et0Keh6gtLgemy4W61ilPr6EvAH0SaEoqr3FSID047r6CN6j0efG447xPMV1bqd5s/ZJY4D9/j0+WKCvBKK3Lm1Xr2cMaV6O9sTa77w5ZhkNOTlrE+11u5Tfs53HVtv972T5d6Uvqg1bm7LlKF2FvEj4X0yhZoEiEsynQxZdCfexXB0SOyYc6msXum1TuC1D9TuWmxNEw0gBaeA1c/xAD6hgDva9z2nRDmnlT212wrCrNkNYAEDbYEvo49hSd+6o4feu7t7d3+e0/9dOiVp5QFFKjQXt10T4OUv4+SphSt/TGUAuzHunwPuVFrZiLhIj8fA91/0aWQvYCiLU7oDPv5CpiWdTrJeaFkWR6w2q2YwWIeKTQPK2hOZKW2e/qj3JpUp03pGnRt7JgIAmuWcs3RofHRoKUiHJ7neq2YDHZUM41t8+EsGWtT6D/n1FCfUDCuMNl9JX4/xVpQXX3hNJ8Ve3ayQy3JCA9DtcyPY/9/l0lYfVDE="
deploy:
- provider: script
script: mvn dockerfile:push
on:
branch: development
env:
global:
- secure: "A9b/wb0sh/uvFB3oKLxMiQJu8S9WvOM7AFv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TtHezXEw6lzPw+Fg/X1e+XRCpznR0FGGt+yqtgTlzVDwPWYDQ1M51QHsc2l+RUuoJD9VKhFJy3T4ATyxUa+Ql3qm9t1OXCIY1W2Q9q/rN3XEKYdXWqPgc7V2/jFlT/5yo4nq75ncBnL+BX6z1+xzjKjKOTsLqBi+Gugxy/qS9SLF9owbfh6FipBOLlgMTUL/k1FxJWxORxK9b/WQlpB1Q1e3u6t4GVXVffce0nA+3M3SgryIWQakmPQYqH4tj0VjFjo9M="
# ^^ 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'