Skip to content

Commit

Permalink
Issue #7045: move version validation to azure
Browse files Browse the repository at this point in the history
  • Loading branch information
romani committed Nov 28, 2020
1 parent 722318f commit aa07aee
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,14 @@ jobs:
# - USE_MAVEN_REPO="true"
# - CMD="./.ci/travis/travis.sh no-error-test-sbe"

# moved to azure-pipelines.yml
# versions to update
- jdk: openjdk8
env:
- DESC="print versions to update"
- USE_MAVEN_REPO="true"
- CMD="./.ci/travis/travis.sh versions"
- SKIP_JOB_BY_FILES="false"
# - jdk: openjdk8
# env:
# - DESC="print versions to update"
# - USE_MAVEN_REPO="true"
# - CMD="./.ci/travis/travis.sh versions"
# - SKIP_JOB_BY_FILES="false"

# moved to azure-pipelines.yml
# OpenJDK11 verify
Expand Down
25 changes: 25 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
# 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:
- main

Expand Down Expand Up @@ -90,6 +97,12 @@ strategy:
cmd: "./.ci/travis/travis.sh verify-no-exception-configs"
skipCache: true

# versions to update
'versions':
image: 'ubuntu-16.04'
cmd: "./.ci/travis/travis.sh versions"
onCronOnly: true

pool:
vmImage: $(image)

Expand All @@ -98,6 +111,8 @@ variables:
MAVEN_OPTS: '-Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)'
SKIP_CACHE: $(skipCache)
IMAGE: $(image)
ON_CRON_ONLY: $(onCronOnly)
BUILD_REASON: $[variables['Build.Reason']]

steps:
- bash: |
Expand All @@ -116,4 +131,14 @@ steps:

- bash: |
set -e
echo "ON_CRON_ONLY:"$ON_CRON_ONLY
echo "BUILD_REASON:"$BUILD_REASON
eval "$(cmd)"
condition: |
or (
ne(variables.ON_CRON_ONLY, 'true'),
and(
eq(variables.ON_CRON_ONLY, 'true'),
eq(variables['Build.Reason'], 'Schedule')
)
)

0 comments on commit aa07aee

Please sign in to comment.