-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
61 lines (60 loc) · 4.94 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
50
51
52
53
54
55
56
57
58
59
60
61
language: java
cache:
directories:
- "$HOME/.m2"
branches:
except:
- /^dependabot.*$/
jobs:
include:
- stage: test
jdk: openjdk8
script:
- mvn verify
- stage: test
jdk: openjdk11
script:
- mvn verify
- stage: test
jdk: openjdk14
script:
- mvn verify
- stage: deploy
name: "Sonar analysis"
jdk: openjdk11
before_install: "export VERSION_SUFFIX=`grep '<version>' pom.xml -m 1 | cut -d'>' -f 2 | cut -d'<' -f 1 | cut -d'-' -f 2`"
script:
- if [[ $VERSION_SUFFIX == "SNAPSHOT" ]]; then
export IS_SNAPSHOT=true;
else
export IS_SNAPSHOT=false;
fi
- if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" && $IS_SNAPSHOT == "true" || -n "$TRAVIS_TAG" && $IS_SNAPSHOT == "false" ]]; then
mvn verify -Dtest="*,!RunnerStandardIOTest,!RunnerWebSocketTest" -B sonar:sonar;
fi
- if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" && $IS_SNAPSHOT == "true" ]]; then
./.travis/before-deploy.sh;
./.travis/deploy.sh;
elif [[ -n "$TRAVIS_TAG" && $IS_SNAPSHOT == "false" ]]; then
./.travis/before-deploy.sh;
./.travis/deploy.sh;
fi
addons:
sonarcloud:
organization: "teiid"
token:
secure: "TggRuDyFbjFNts8bBcoQhVq9a8dAiEN0Y/JqHfprksA+ekvJ7MLhfQCNFCHnWVdCAOCX00jNOrDR/nKLLV7NsCxVGZINYN17Ls4zfYPGXk6hmGAX+E58XM8cBhS/tKO8YSw3mL/L0n8saKOsANwGubUIu4pcUVnAYx2BfhYDcznEUT2NDLhZOc4ZNQdq2fKBgi4vlUVieonqEcdCPpTDIVglqlZZcufiBwtdLKwQN89L4MT+351JkVFiz6JjDTUManmnvkdGP7lL62YJVWH87DsEvxTJlWPBeTslG++yv7ctgeD7AalmkU/WZZ8ycChQORSn6mKB3uKIFQQubyeUPUwGFwBUMy8jcOXCGYcThPSfbPaK4NFUySdPrLKqU5lsDhqf/eXqj2KIqPjxBm0QI2/RQdyjWYLKvqf0Eo1TtetDNA74xM1gpKyh/UsXD5Lfkp3JtLlzgTY1nph/q4A+8aJq/WEFJade4AAQpxa4wqUW7TnY5z1te01z+yvnYdE/Lov7FgVZ3Iy37jBqZYAzwlkGpFFLltgrmpaPyuM31w2Cp/+v+qYuGj41EZm8AcnbhttlnWc+xed6q9sItKCdH33hLpXiH9AHTp2elulV1s062wDe9/gIKHeMV3K7dSpf5BIGXWogjDo2+DFr/NKKIIY7P5fWFXU+W3QxWCmN4hU="
stages:
- test
- name: deploy
if: branch = master AND NOT type = pull_request
env:
global:
# OSSRH_USERNAME
- secure: meIOojhwavgbmFmt1hKgHjqieqNTfrEXtEuLm3m91Me8Gbf+2O9hhT4QM/Mp7zREw7e1yQ8LlRUifvCyF81gw088HAf6MDxIl3USA8FFtfwAnxG3CzR2z9Z5YN4UlAmndjolsGiWysUieFo19yC3/MMSS6c8i4f2V3HHZDEHAlEsoUnzdD926RM7AEfbC3GHIAg2QWK1kKpghb2bvTQse4z8GowRsI27YOHj308bVTsSYdpN7t+RkHP3O3QMbfXnqAg2hAK+6PEP32aicPqhdAyC4NLcnN2bptbnA0MrelLJsdVH6pe/5iOU0vsTYwsxc9ZN5wbYFuJk4QIgcj7XnGxaR8e0ff1WTRkwjyZqaAlMW4l+LTVhSmrqOSKsoIf/9qGDqIQRtaMZnmVIN5ji4Q9bTPW0lnUqk7k5+YID2aBXfmHBy3MXvXUdFHzpWDV5dfU54c/HYaY8jEM6lN2I3kdWZLb9TUoMl0g6BlnHcBxhOljrF9PYyRxmW7Z4+xxwOntE+YR9zMBvMUyXs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