-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
46 lines (46 loc) · 1013 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
language: java
jdk:
- oraclejdk8
addons:
sonarcloud:
organization: nicklas2751-github
before_install:
- chmod +x mvnw
- openssl aes-256-cbc -pass pass:$ENCRYPTION_PASSWORD -in .travis/secring.gpg.enc -out .travis/secring.gpg -d
- gpg --fast-import .travis/secring.gpg
stages:
- Test
- name: Deploy
if: branch IN (master,development) OR tag = true
jobs:
include:
- stage: Test
script:
- ./mvnw clean verify sonar:sonar
cache:
directories:
- .autoconf
- $HOME/.m2
- stage: Deploy
script:
- ./mvnw clean install
cache:
directories:
- .autoconf
- $HOME/.m2
deploy:
- provider: script
script:
- ./mvnw --settings .maven.xml deploy
skip_cleanup: true
on:
all_branches: true
- provider: releases
api_key:
secure: $GITHUB_DEPLOY_TOKEN
file_glob: true
file:
- target/*
skip_cleanup: true
on:
tags: true