Skip to content

Commit

Permalink
Replaced pipeline with test archive pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
blowekamp committed Dec 12, 2019
1 parent b3cc759 commit c07e716
Showing 1 changed file with 9 additions and 153 deletions.
162 changes: 9 additions & 153 deletions Testing/CI/Azure/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,166 +5,22 @@ trigger:
- master
- next
- release
- archive_test
variables:
ExternalDataVersion: 1.2.0
jobs:
- job: Linux
timeoutInMinutes: 0
cancelTimeoutInMinutes: 300
pool:
name: 'Default'
demands:
- Agent.OS -equals Linux
variables:
PYTHONUSERBASE: $(Agent.BuildDirectory)/.pypkgs
workspace:
clean: all
vmImage: 'Ubuntu-16.04'
steps:
- template: templates/git-download-steps.yml
- script: |
mkdir -p ${PYTHONUSERBASE}
python --version
python -m site --user-site
python -m pip install --upgrade --user pip
python -m pip install --user setuptools
python -m pip install --user numpy scikit-ci-addons
displayName: 'Install python tools and dependency'
- bash: |
set -x
c++ --version
cmake --version
ninja --version
ctest -S ${BUILD_SOURCESDIRECTORY}/Testing/CI/Azure/azure.cmake -V -j 4
displayName: Build and test
env:
CTEST_CONFIGURATION_TYPE: MinSizeRel
CTEST_OUTPUT_ON_FAILURE: 1
DASHBOARD_BRANCH_DIRECTORY: $(Agent.BuildDirectory)/SimpleITK-dashboard
ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS: 2
CTEST_CACHE: |
BUILD_DOCUMENTS:BOOL=OFF
BUILD_EXAMPLES:BOOL=ON
BUILD_SHARED_LIBS:BOOL=OFF
BUILD_TESTING:BOOL=ON
WRAP_DEFAULT:BOOL=OFF
WRAP_R:BOOL=OFF
WRAP_PYTHON:BOOL=ON
workingDirectory: $(Agent.BuildDirectory)
- script: |
python -m ci_addons ctest_junit_formatter $(Build.SourcesDirectory)-build > $(Agent.BuildDirectory)/JUnitTestResults.xml
condition: succeededOrFailed()
displayName: 'Format CTest output in JUnit format'
- task: PublishTestResults@2
inputs:
testResultsFiles: "$(Agent.BuildDirectory)/JUnitTestResults.xml"
testRunTitle: 'CTest $(Agent.OS)'
condition: succeededOrFailed()
displayName: 'Publish test results'

- job: macOS
timeoutInMinutes: 0
cancelTimeoutInMinutes: 300
variables:
imageName: 'macos-10.14'
xcodeVersion: 10.2
pool:
vmImage: $(imageName)

steps:
- template: templates/git-download-steps.yml
- task: UsePythonVersion@0
displayName: Enable Python
inputs:
versionSpec: '3.6'
architecture: 'x64'
addToPath: true
- script: |
python --version
sudo python -m pip install setuptools numpy
sudo python -m pip install ninja scikit-ci-addons
displayName: 'Install ninja dependency'
- bash: |
set -x
xcode-select -p
sudo xcode-select -s /Applications/Xcode_$(xcodeVersion).app/Contents/Developer/
xcode-select -p
c++ --version
cmake --version
ninja --version
ctest -S ${BUILD_SOURCESDIRECTORY}/Testing/CI/Azure/azure.cmake -V -j 2
displayName: Build and test
env:
CTEST_CONFIGURATION_TYPE: MinSizeRel
CTEST_OUTPUT_ON_FAILURE: 1
DASHBOARD_BRANCH_DIRECTORY: $(Agent.BuildDirectory)/SimpleITK-dashboard
ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS: 2
CTEST_CACHE: |
BUILD_DOCUMENTS:BOOL=OFF
BUILD_EXAMPLES:BOOL=ON
BUILD_SHARED_LIBS:BOOL=OFF
BUILD_TESTING:BOOL=ON
WRAP_DEFAULT:BOOL=OFF
WRAP_PYTHON:BOOL=ON
WRAP_JAVA:BOOL=ON
workingDirectory: $(Agent.BuildDirectory)
- script: |
python -m ci_addons ctest_junit_formatter $(Build.SourcesDirectory)-build > $(Agent.BuildDirectory)/JUnitTestResults.xml
condition: succeededOrFailed()
displayName: 'Format CTest output in JUnit format'
- task: PublishTestResults@2
inputs:
testResultsFiles: "$(Agent.BuildDirectory)/JUnitTestResults.xml"
testRunTitle: 'CTest $(Agent.OS)'
condition: succeededOrFailed()
displayName: 'Publish test results'

- job: Windows
timeoutInMinutes: 0
cancelTimeoutInMinutes: 300
pool:
vmImage: 'vs2017-win2016'
steps:
- template: templates/git-download-steps.yml
- task: UsePythonVersion@0
displayName: Enable Python
inputs:
versionSpec: '3.6'
architecture: 'x64'
addToPath: true
- script: |
python --version
python -m pip install setuptools numpy
python -m pip install ninja scikit-ci-addons
displayName: 'Install ninja dependency'
- script: |
cmake --version
ctest -S "$(Build.SourcesDirectory)/Testing/CI/Azure/azure.cmake" -V -j 4
displayName: Build and test
env:
CTEST_CONFIGURATION_TYPE: MinSizeRel
CTEST_OUTPUT_ON_FAILURE: 1
CTEST_CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
CTEST_CMAKE_GENERATOR_TOOLSET: v141,host=x64
DASHBOARD_BRANCH_DIRECTORY: $(Agent.BuildDirectory)/SimpleITK-dashboard
ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS: 2
CXXFLAGS: /MP
CFLAGS: /MP
CTEST_CACHE: |
BUILD_DOCUMENTS:BOOL=OFF
BUILD_EXAMPLES:BOOL=ON
BUILD_SHARED_LIBS:BOOL=OFF
BUILD_TESTING:BOOL=ON
WRAP_DEFAULT:BOOL=OFF
WRAP_CSHARP:BOOL=OFF
WRAP_PYTHON:BOOL=ON
workingDirectory: $(Agent.BuildDirectory)
- script: |
python -m ci_addons ctest_junit_formatter $(Build.SourcesDirectory)-build > $(Agent.BuildDirectory)/JUnitTestResults.xml
condition: succeededOrFailed()
displayName: 'Format CTest output in JUnit format'
- task: PublishTestResults@2
echo "${BUILD_ARTIFACTSTAGINGDIRECTORY}"
echo "This is a test archive" | gzip -c > ${BUILD_ARTIFACTSTAGINGDIRECTORY}/archive.zip
displayName: 'Creating archive'
- task: PublishBuildArtifacts@1
inputs:
testResultsFiles: "$(Agent.BuildDirectory)/JUnitTestResults.xml"
testRunTitle: 'CTest $(Agent.OS)'
condition: succeededOrFailed()
displayName: 'Publish test results'
pathtoPublish: $(Build.ArtifactStagingDirectory)/
artifactName: Java
continueOnError: true

0 comments on commit c07e716

Please sign in to comment.