Skip to content

Commit

Permalink
ENH: Set ITKGitTag to v5.1rc02 for azure CI
Browse files Browse the repository at this point in the history
A newer version of ITK is needed for CI
build to succeed.
  • Loading branch information
hjmjohnson committed Mar 1, 2020
1 parent 4a478b9 commit daca3b9
Showing 1 changed file with 40 additions and 10 deletions.
50 changes: 40 additions & 10 deletions test/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# The file template originates from: https://github.com/InsightSoftwareConsortium/ITKModuleTemplate
variables:
ITKGitTag: v5.0.0
ITKPythonGitTag: v5.0.0.post1
ITKGitTag: v5.1rc02
ITKPythonGitTag: v5.1rc02
CMakeBuildType: Release

trigger:
Expand Down Expand Up @@ -54,6 +55,7 @@ jobs:
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install scikit-ci-addons
python -m pip install cookiecutter
python -m pip install ninja
displayName: 'Install build dependencies'
Expand All @@ -75,11 +77,16 @@ jobs:
curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITK/dashboard/itk_common.cmake -O
displayName: 'Fetch CTest driver script'
- bash: |
python -m cookiecutter --no-input --output-dir "$(Agent.BuildDirectory)" "$(Build.SourcesDirectory)"
mkdir "$(Agent.BuildDirectory)/ITKModuleTemplate/.git"
displayName: 'Evaluate template'
- bash: |
cat > dashboard.cmake << EOF
set(CTEST_SITE "Azure.\$ENV{AGENT_MACHINENAME}")
file(TO_CMAKE_PATH "\$ENV{AGENT_BUILDDIRECTORY}" CTEST_DASHBOARD_ROOT)
file(TO_CMAKE_PATH "\$ENV{BUILD_SOURCESDIRECTORY}" CTEST_SOURCE_DIRECTORY)
file(TO_CMAKE_PATH "\$ENV{AGENT_BUILDDIRECTORY}/ITKModuleTemplate" CTEST_SOURCE_DIRECTORY)
file(TO_CMAKE_PATH "\$ENV{AGENT_BUILDDIRECTORY}/build" CTEST_BINARY_DIRECTORY)
set(dashboard_source_name "$(Build.Repository.Name)")
if(DEFINED ENV{SYSTEM_PULLREQUEST_SOURCEBRANCH})
Expand Down Expand Up @@ -131,7 +138,7 @@ jobs:
sudo pip3 install --upgrade pip
sudo pip3 install --upgrade setuptools
sudo pip3 install scikit-ci-addons
ci_addons ctest_junit_formatter $(Agent.BuildDirectory)/build > $(Agent.BuildDirectory)/JUnitTestResults.xml
ci_addons ctest_junit_formatter "$(Agent.BuildDirectory)/build" > "$(Agent.BuildDirectory)/JUnitTestResults.xml"
condition: succeededOrFailed()
displayName: 'Format CTest output in JUnit format'
Expand All @@ -156,15 +163,26 @@ jobs:
chmod u+x dockcross-manylinux-download-cache-and-build-module-wheels.sh
displayName: 'Fetch build script'
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
architecture: 'x64'

- script: |
python -m pip install cookiecutter
python -m cookiecutter --no-input --output-dir $(Agent.BuildDirectory) $(Build.SourcesDirectory)
displayName: 'Evaluate template'
- script: |
cd $(Agent.BuildDirectory)/ITKModuleTemplate
export ITK_PACKAGE_VERSION=$(ITKPythonGitTag)
./dockcross-manylinux-download-cache-and-build-module-wheels.sh
$(Build.SourcesDirectory)/dockcross-manylinux-download-cache-and-build-module-wheels.sh
displayName: 'Build Python packages'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'LinuxWheels'
targetPath: './dist'
targetPath: '$(Agent.BuildDirectory)/ITKModuleTemplate/dist'


- job: 'PackageMacOS'
Expand All @@ -181,14 +199,20 @@ jobs:
displayName: 'Fetch build script'
- script: |
python -m pip install cookiecutter
python -m cookiecutter --no-input --output-dir $(Agent.BuildDirectory) $(Build.SourcesDirectory)
displayName: 'Evaluate template'
- script: |
cd $(Agent.BuildDirectory)/ITKModuleTemplate
export ITK_PACKAGE_VERSION=$(ITKPythonGitTag)
./macpython-download-cache-and-build-module-wheels.sh
$(Build.SourcesDirectory)/macpython-download-cache-and-build-module-wheels.sh
displayName: 'Build Python packages'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'MacOSWheels'
targetPath: './dist'
targetPath: '$(Agent.BuildDirectory)/ITKModuleTemplate/dist'


- job: 'PackageWindows'
Expand All @@ -203,15 +227,21 @@ jobs:
curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKPythonPackage/master/scripts/windows-download-cache-and-build-module-wheels.ps1 -O
displayName: 'Fetch build script'
- script: |
python -m pip install cookiecutter
python -m cookiecutter --no-input --output-dir $(Agent.BuildDirectory) $(Build.SourcesDirectory)
displayName: 'Evaluate template'
- script: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cd $(Agent.BuildDirectory)\ITKModuleTemplate
set ITK_PACKAGE_VERSION=$(ITKPythonGitTag)
set CC=cl.exe
set CXX=cl.exe
powershell.exe -file .\windows-download-cache-and-build-module-wheels.ps1
powershell.exe -file $(Build.SourcesDirectory)\windows-download-cache-and-build-module-wheels.ps1
displayName: 'Build Python packages'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'WindowsWheels'
targetPath: './dist'
targetPath: '$(Agent.BuildDirectory)/ITKModuleTemplate/dist'

0 comments on commit daca3b9

Please sign in to comment.