-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
40 lines (40 loc) · 1.79 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
language: java
jdk:
- openjdk17
git:
depth: false
addons:
sonarcloud:
organization: "sbaudoin-github"
token:
secure: "GXJrPWAm6gJItAH18U6ii4v98aTGXlnmgJgnKbmgwES3x90MXeVqEaoWRQOtX6ajONwBQ00QilaUFeO2j2EwhbeARZc5BUjFkyi1SUi5DrLXWPp2xS51afi/jGEqGTmOJqpbf+gSbTkd+8pY+AlEOBjAmgOx5BJUepx/cR/oufVJTd1R6Eyx+kJxQK0ujSj1fq6x54HuGCXZeIitNxpASU1hGrb9Bfn5RPCjjYGhSQ51tE3oDM+WminEm8Zs9NOfCkVlyzUmWl+Nw6iCJG2m6qlslLJnGtQigb7koG6IG/9YpT+P+DbOXs70V27KeILxTmmTg/t7y2uv5F/zps1BKvzqBkzgsjuMEoIVadD65IJasP8a1onNfa6pIXheXUVciAynBySgz64OJLElzbnT4OIzVaqQKivXUqGI4BVmsBJZdLi+JfaS/XFuUec407qCjk1mSMnYZ7FFtTDLqhkxgcIxjwbN1DHzeuYhWAiB4T9ZsY1ETekd2PeEOC5dAm1VYUsOAXHNHs0d1u+Sevsbp1AVeSlI+ZkKbhOjEMt6oQGrcZvZKJwND2Si57FP7L6/1NIJUbGxPmVzGys2Bcdtayg/FlMCyHMc1n7DvhUx98BkPm8CzivQu7ezYlLQM0wupXRJl6xfRKxK0AChsACFGMp1Amj8zfkzBwAgBeUmDE8="
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
before_install:
- if [ ! -z "$GPG_SECRET_KEYS" ]; then echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import; fi
- if [ ! -z "$GPG_OWNERTRUST" ]; then echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust; fi
install:
- mvn --settings .travis/settings.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V
script:
- mvn clean package sonar:sonar -Dsonar.projectKey=sbaudoin_yamllint -P audit || travis_terminate 1
- bash it/it.sh
deploy:
- provider: script
script: bash .travis/deploy.sh
skip_cleanup: true
on:
repo: sbaudoin/yamllint
all_branches: true
- provider: releases
api_key: "$GITHUB_OAUTH_TOKEN"
file_glob: true
file:
- target/yamllint-*-distrib.tar.bz2
- target/yamllint-*-distrib.tar.gz
- target/yamllint-*-distrib.zip
skip_cleanup: true
on:
repo: sbaudoin/yamllint
tags: true