-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
70 lines (62 loc) · 1.73 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
62
63
64
65
66
67
68
69
70
_reference_jdk: &reference_jdk
JDK="[email protected]"
_reference_build: &reference_build
os: linux
env: *reference_jdk
git:
depth: false
autocrlf: input
language: minimal
os:
- macos
- windows
- linux
env:
global:
- GRAVIS_REPO="https://github.com/DanySK/Gravis-CI.git"
- GRAVIS="$HOME/gravis"
- TERM="dumb"
matrix:
- *reference_jdk
- JDK="[email protected]"
- JDK="[email protected]"
- JDK="[email protected]"
- JDK="adopt@"
- JDK="adopt-openj9"
stages:
- base
- test
- name: deploy
if: type != pull_request AND repo = DanySK/Template-for-Gradle-Plugins
jobs:
exclude:
- <<: *reference_build
stage: test
include:
- <<: *reference_build
stage: base
after_success: bash <(curl -s https://codecov.io/bash)
script:
- travis_retry ./gradlew clean check jacocoTestReport
- <<: *reference_build
stage: deploy
install:
- openssl aes-256-cbc -K $encrypted_f778b2e1574b_key -iv $encrypted_f778b2e1574b_iv -in secrets.asc.enc -out secrets.asc -d
- export ORG_GRADLE_PROJECT_signingKey=$(cat secrets.asc)
- rm secrets.asc
script:
- travis_retry ./gradlew dokka publishMavenCentralPublicationToMavenRepository
after_success:
# Uploading to the Gradle Plugin Portal now, as it fails in case of duplicates
- travis_retry ./gradlew publishPlugin -Pgradle.publish.key=$GRADLE_PUBLISH_KEY -Pgradle.publish.secret=$GRADLE_PUBLISH_SECRET
before_install:
- travis_retry git clone --depth 1 $GRAVIS_REPO $GRAVIS
- source $GRAVIS/install-jdk
script:
- travis_retry ./gradlew clean check
before_cache:
- $GRAVIS/clean-gradle-cache
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/