-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure updates for MacOS/Windows/Linux
Signed-off-by: Christina Tempelaar-Lietz <xlietz@gmail.com>
- Loading branch information
Showing
7 changed files
with
117 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
set -ex | ||
|
||
brew update | ||
brew install glew | ||
brew install boost | ||
brew install boost-python | ||
brew install boost-python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
$pythonVersion = $Args[0] | ||
$pythonMajor = ($pythonVersion -split '\.')[0] | ||
|
||
Write-Host "Installing python version ${pythonVersion}" | ||
|
||
if ($pythonMajor -eq "3") | ||
{ | ||
Invoke-WebRequest "https://www.python.org/ftp/python/${pythonVersion}/python-${pythonVersion}-amd64.exe" -OutFile "C:\python-${pythonVersion}-amd64.exe" | ||
& "C:\python-${pythonVersion}-amd64.exe" /quiet /l* C:\_python.log TARGETDIR=C:\_python | ||
} | ||
else | ||
{ | ||
Invoke-WebRequest "https://www.python.org/ftp/python/${pythonVersion}/python-${pythonVersion}.amd64.msi" -OutFile "C:\python-${pythonVersion}-amd64.msi" | ||
msiexec /i "C:\python-${pythonVersion}-amd64.msi" /quiet /l* C:\_python.log TARGETDIR=C:\_python | ||
} | ||
|
||
Invoke-WebRequest "https://www.python.org/ftp/python/${pythonVersion}/python-${pythonVersion}.amd64.msi" -OutFile "C:\python-${pythonVersion}.amd64.msi" | ||
msiexec /i "C:\python-${pythonVersion}.amd64.msi" /quiet /l* C:\_python.log TARGETDIR=C:\_python | ||
Write-Host "##vso[task.prependpath]C:\_python" | ||
Write-Host "##vso[task.prependpath]C:\_python\Scripts" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
$zlibVersion = $Args[0] | ||
$zlibMajorMinor = [io.path]::GetFileNameWithoutExtension("$zlibVersion") | ||
$zlibVersionConcise = $zlibVersion -replace '[.]','' | ||
$zlibArchive = "https://www.zlib.net/zlib${zlibVersionConcise}.zip" | ||
|
||
$zlibRoot = "C:\" | ||
$zlibBuildPath = "${zlibRoot}\zlib-${zlibVersion}" | ||
$zlibInstallPath = "C:\_zlib" | ||
$msbuild = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe" | ||
|
||
Write-Host "Retrieving ${zlibArchive}" | ||
Invoke-WebRequest "${zlibArchive}" -OutFile "${zlibRoot}\zlib-${zlibVersion}.zip" | ||
Write-Host "Expanding archive ${zlibRoot}\zlib-${zlibVersion}.zip" | ||
Expand-Archive "${zlibRoot}\zlib-${zlibVersion}.zip" -DestinationPath "${zlibRoot}" | ||
|
||
cd $zlibBuildPath | ||
mkdir _build | ||
cd _build | ||
cmake .. -G"Visual Studio 15 2017" -DCMAKE_INSTALL_PREFIX="${zlibInstallPath}" | ||
|
||
Write-Host "Building ${zlibBuildPath}\_build\INSTALL.vcxproj" -foregroundcolor green | ||
& "${msbuild}" "${zlibBuildPath}\_build\INSTALL.vcxproj" /P:Configuration=Release | ||
|
||
cd $zlibInstallPath | ||
Write-Host "ls ${zlibInstallPath}" | ||
& ls | ||
|
||
Write-Host "##vso[task.prependpath]${zlibInstallPath}" | ||
Write-Host "##vso[task.prependpath]${zlibInstallPath}\bin" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
# azure-pipelines template file | ||
# https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops | ||
|
||
parameters: | ||
buildType: Release | ||
excludeTests: '' | ||
|
||
steps: | ||
- bash: | | ||
ctest -T Test -E PyIlmBase.* --output-on-failure -VV | ||
exclusionFlags="" | ||
if [[ -n "${{ parameters.excludeTests}}" ]]; then | ||
exclusionFlags="-E ${{ parameters.excludeTests }}" | ||
echo "Excluding tests ${{ parameters.excludeTests }}" | ||
fi | ||
ctest -T Test \ | ||
$exclusionFlags \ | ||
-C ${{ parameters.buildType }} \ | ||
--output-on-failure \ | ||
-VV | ||
workingDirectory: _build | ||
displayName: Test OpenEXR |