-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (38 loc) · 2.74 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
language: java
dist: trusty
jdk:
- openjdk11
sudo: false
install: true
notifications:
email: false
branches:
only:
- master
- development
addons:
chrome: stable
sonarcloud:
organization: "tbmelabs-github"
token:
secure: "hcUU2Recs+PfHTqmvI+wZHfM2V2Ug+BmtqDiIaVpvHIu+yPz/7yP0GxKV9OIWysZnPFz3Pr8qqsofPm0zFGsZJQw0FTYgcdwnCiKwxdB4s/Quzz015CMGO5c/eB3ld/zjf08c4NpLCkXHGudBpqnLtJ1fGSyToyHjFqfNtQIind+ZIwtKPEXNIOt6aAa2vjVABRKUFJFgADXIrfjEm1haqLx+AHRDxJgPW7IgQHmHHZ8g6P9xWJY2wzoZMcZHLDQYsYdiaTUEs6A6/+RC27MGA3rqKv5eSa+6g0VKoawBOKHfOo0yj443prjuMEkPdXKjHaWe4tKTjxRUkvlG9mJQAnWikTsgTjQ5be5O779UiAbRMtRF4kIPpjsXucafG/un5airWQKeoPioSiySzYiWSl6hw8Zvg8wTVwUMcQSu1Y7iiUliv7d0xVIQVZ5rc88XzuQPH0sBKT0iuZhzBpQR2Txt3tVOqOy8xKRe5RjglDQE0vKjzyFAwwuCLWSxOlomM8oMl2PXM9NOCNBc8g+U5sKkgn1WD/yq3rGNae2VMZjGniaGs/7PtNVOhS+jet9U1vgVF12emygJWQxFxh+IFfADcUZ166Frx5SpTIhkwO1YgeJyXXGm6iFInnpzfT5fHuYa3PYEbmdXOSup2buEZimtOrI0hnPKsQzguKM6Ks="
deploy:
- provider: script
script: mvn dockerfile:push
on:
branch: development
env:
global:
- secure: "bx8gQBMbh5ukYnVDw1qeLocAxkeaqtDfrq/griGtjykn7ePtNLcH95WcoTkA6v6LCCq4vG7Lg4o1oEt6dX08l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sa5ScHb6l85mqSzofAWDAPkA+DSoUrbC9LsKffDlV6cSzORgZWl23KtAyxQJvIIIjz66l8xHiuz5YI0pcWJd/+sbC4C+LyuPy107zWRCCaws8f0iT5JvCjsn+EqVGeWiNDRLPcEQ9RUFg4hYqcMBi7vh1zrFLzB7PJfbWCvl59wQ2XsK58auVDxbZrerblE0fbYKKrpVYt8laY0hVRShpthmt0dlzj+8XYBhPaSmpI8jMjuBg="
# ^^ 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'