Permalink
Branch: master
Find file Copy path
77 lines (65 sloc) 2.29 KB
language: java
# Specify which branches/tags that we do not want to be built: r5.0.0-M5
branches:
except:
- /^r\d.*$/
# Remove lock files before caching
before_cache:
- rm -f $HOME/.gradle/caches/*/*.lock
# Cache only relevant directories
cache:
directories:
- $HOME/.gradle/caches/modules-2
- $HOME/.gradle/wrapper/dists
install:
- ./gradlew --version # Display Gradle, Groovy, JVM and other versions
jdk:
- openjdk11
- openjdk12
- openjdk-ea
os:
- linux
- osx
matrix:
exclude:
- os: osx
jdk: openjdk12
- os: osx
jdk: openjdk-ea
allow_failures:
- jdk: openjdk-ea
script:
- ./gradlew --scan --warning-mode=all -Dplatform.tooling.support.tests.enabled=true build
stages:
- test
- name: deploy
if: repo = junit-team/junit5 AND (branch = master OR branch =~ /^releases\/\d+\.\d+\.x$/) AND type = push
jobs:
include:
- name: "Coverage"
script:
- ./gradlew --scan --stacktrace --warning-mode=all -PenableJaCoCo build jacocoRootReport
- bash <(curl -s https://codecov.io/bash)
- stage: deploy
name: "Publish snapshot artifacts"
env:
# ORG_GRADLE_PROJECT_nexusUsername
- secure: X7cGNpY3N5NcR42xlFlpETIcaXKi1rwlLWxhC+TesvZ88OOdnU/B5pwKib64r17uf8WXJpuZTIq+RH5drd5bxQkakMrXiNvKtRVUECEMl7JWF6ZVEJzFBKcmdN98p6gv8UTTBx1VHx8E6mBe/WbFCFdM6TMzz1jp7J87dXyoiac=
# ORG_GRADLE_PROJECT_nexusPassword
- secure: KMyXza/904SRPsHEO4vvS8vEA1dOeXJXgxROIJ2e5Gy2rMxFwn6x43YZiwi8eiSXoL+u7T6TQJbQpCGVTCiUXfJGb2aTu8yRK12MDzjWHnyE4tfYy1aNdB75TnlY/YrThDmjTDVMEfPZf3oLlB7zsrk5t9PfgHUEiPJ4Rsz1g04=
script: ./gradlew --scan publish -x check
- name: "Update snapshot documentation"
if: branch = master
addons:
apt:
packages:
- graphviz
env:
# GRGIT_USER
- secure: PwwKcsVdukfzvDBHmdajhMsIVHSbPt+lorgibpRXImBt+C4XHlaz/Z78Bq8jtkDvrXb+DTSfSGvAxg1IBM+rtCzrYb5DAqq+OfuG9Uu6FDTnkIOHs5Gii7pAfT0+W31Oj76OgiCAXX+p8lbFTchz6ope5zVYEpSlAe7aXCVTGM0=
script: ./src/publishDocumentationSnapshotOnlyIfNecessary.sh
notifications:
slack:
on_pull_requests: false
rooms:
- secure: WFsU02gopb070NzuGL97y83Oke8X18iyv93V1ZOjRDom1hiWtsiW0bA7VSGPXfAK2gjexhpmvmi8k97B92qkM5I8N3fERddu6YfxN4bXemXnvJuwUufN6fX/thO8+Wh4Qc5iPMRrnmYplDz9J5WzMLgNjs8WKQOwml418nRQmLs=