1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-checkstyle

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
azure-pipelines.yml 4.6 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Roman Ivanov Отправлено 18.06.2024 17:04 5756e0a
# Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
schedules:
- cron: "1 0 * * 0"
displayName: Weekly weekend build
branches:
include:
- master
trigger:
- master
pr:
- master
strategy:
matrix:
# testing age of pr
'pr-age':
image: 'ubuntu-20.04'
cmd: "./.ci/validation.sh pr-age"
skipCache: true
# spelling
'spelling':
image: 'ubuntu-22.04'
cmd: "./.ci/test-spelling-unknown-words.sh"
skipCache: true
# unit tests (openjdk11)
'test':
image: 'ubuntu-20.04'
cmd: "./.ci/validation.sh test"
# unit tests in German locale (openjdk11)
'test-de':
image: 'ubuntu-20.04'
cmd: "./.ci/validation.sh test-de"
# unit tests in Spanish locale (openjdk11)
'test-es':
image: 'ubuntu-20.04'
cmd: "./.ci/validation.sh test-es"
# unit tests in Finnish locale (openjdk11)
'test-fi':
image: 'ubuntu-20.04'
cmd: "./.ci/validation.sh test-fi"
# unit tests in French locale (openjdk11)
'test-fr':
image: 'ubuntu-20.04'
cmd: "./.ci/validation.sh test-fr"
# unit tests in Chinese locale (openjdk11)
'test-zh':
image: 'ubuntu-20.04'
cmd: "./.ci/validation.sh test-zh"
# unit tests in Japanese locale (openjdk11)
'test-ja':
image: 'ubuntu-20.04'
cmd: "./.ci/validation.sh test-ja"
# unit tests in Portuguese locale (openjdk11)
'test-pt':
image: 'ubuntu-20.04'
cmd: "./.ci/validation.sh test-pt"
# unit tests in Turkish locale (openjdk11)
'test-tr':
image: 'ubuntu-20.04'
cmd: "./.ci/validation.sh test-tr"
# unit tests in Russian locale (openjdk11)
'test-ru':
image: 'ubuntu-20.04'
cmd: "./.ci/validation.sh test-ru"
# unit tests in Albanian locale (openjdk11)
'test-al':
image: 'ubuntu-20.04'
cmd: "./.ci/validation.sh test-al"
# OpenJDK11 verify
'OpenJDK11 verify':
image: 'ubuntu-20.04'
cmd: "mvn -e --no-transfer-progress verify"
# MacOS JDK11 verify
'MacOS JDK11 verify':
image: 'macOS-12'
cmd: "JAVA_HOME=$JAVA_HOME_11_X64 mvn -e --no-transfer-progress verify"
# MacOS JDK17 verify
'MacOS JDK17 verify':
image: 'macOS-12'
cmd: "JAVA_HOME=$JAVA_HOME_17_X64 mvn -e --no-transfer-progress verify"
# moved back to Travis till we find a way to keep secrets in azure
# ensure that all modules are used in no exception configs
# 'verify-no-exception-configs':
# image: 'ubuntu-20.04'
# cmd: "./.ci/validation.sh verify-no-exception-configs"
# skipCache: true
# needXmlstarlet: true
# versions to update
'versions':
image: 'ubuntu-20.04'
cmd: "./.ci/validation.sh versions"
onCronOnly: true
# lint for .md files, OSX is used because there is problem to install gem on linux
'markdownlint':
image: 'macOS-12'
cmd: "./.ci/validation.sh markdownlint"
skipCache: true
needMdl: true
pool:
vmImage: $(image)
variables:
MAVEN_CACHE_FOLDER: $(Pipeline.Workspace)/.m2/repository
MAVEN_OPTS: '--show-version -Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)'
SKIP_CACHE: $(skipCache)
IMAGE: $(image)
ON_CRON_ONLY: $(onCronOnly)
NEED_XMLSTARLET: $(needXmlstarlet)
NEED_MDL: $(needMdl)
BUILD_REASON: $[variables['Build.Reason']]
steps:
- bash: |
apt-fast install -y xmlstarlet
condition: |
and(
ne(variables['Agent.OS'], 'Darwin'),
eq(variables.NEED_XMLSTARLET, 'true')
)
- bash: |
gem install mdl
condition: eq(variables.NEED_MDL, 'true')
- task: JavaToolInstaller@0
inputs:
versionSpec: 11
jdkArchitectureOption: 'X64'
jdkSourceOption: 'PreInstalled'
- task: Cache@2
inputs:
key: 'maven | "$(Agent.OS)" | **/pom.xml'
restoreKeys: |
maven | "$(Agent.OS)"
maven
path: $(MAVEN_CACHE_FOLDER)
displayName: Cache Maven local repo
condition: ne(variables.SKIP_CACHE, 'true')
- bash: |
set -e
mvn --version
echo "ON_CRON_ONLY:"$ON_CRON_ONLY
echo "BUILD_REASON:"$BUILD_REASON
echo "cmd: "$(cmd)
eval "$(cmd)"
./.ci/validation.sh git-diff
./.ci/validation.sh ci-temp-check
condition: |
or (
ne(variables.ON_CRON_ONLY, 'true'),
and(
eq(variables.ON_CRON_ONLY, 'true'),
eq(variables['Build.Reason'], 'Schedule')
)
)

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-checkstyle.git
git@api.gitlife.ru:oschina-mirror/mirrors-checkstyle.git
oschina-mirror
mirrors-checkstyle
mirrors-checkstyle
master