-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
42 lines (33 loc) · 896 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
dist: jammy
language: java
jdk: openjdk17
# https://github.com/travis-ci/travis-ci/issues/1147#issuecomment-441393807
if: type != push OR branch = main OR branch =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.m2/
before_install:
- chmod +x gradlew
install:
- ./gradlew build verifyPlugin runPluginVerifier
before_deploy:
- |
nvm install --lts \
&& nvm use --lts \
&& npm i -g \
semantic-release \
@semantic-release/exec \
@semantic-release/git \
@semantic-release/changelog \
@google/semantic-release-replace-plugin \
conventional-changelog-conventionalcommits
deploy:
- provider: script
script: semantic-release --debug
on:
branch: main