forked from aemtools/aemtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (43 loc) · 1.28 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
language: java
jdk: oraclejdk17
dist: trusty
sudo: required
env:
global:
- ORG_GRADLE_PROJECT_downloadIdeaSources=false
script: ./gradlew test koverMergedHtmlReport detektCheck
after_success:
- bash <(curl -s https://codecov.io/bash)
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/
jobs:
include:
- stage: Build and Test
env: ORG_GRADLE_PROJECT_ideaVersion=LATEST-EAP-SNAPSHOT
- env: ORG_GRADLE_PROJECT_ideaVersion=2022.2
# - env: ORG_GRADLE_PROJECT_ideaVersion=2017.1.5
- stage: Deploy new Release
script: skip
env: ORG_GRADLE_PROJECT_ideaVersion=2022.2
deploy:
- provider: script
script: ./gradlew publishPlugin
skip_cleanup: true
on:
tags: true
repo: aemtools/aemtools
- provider: releases
api_key: "generate yours: https://docs.travis-ci.com/user/deployment/releases/"
file_glob: true
file: "build/distributions/*"
skip_cleanup: true
on:
tags: true
repo: aemtools/aemtools
allow_failures:
- env: ORG_GRADLE_PROJECT_ideaVersion=LATEST-EAP-SNAPSHOT