Слияние кода завершено, страница обновится автоматически
# 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 )