2019-12-15 06:59:45 +00:00
|
|
|
trigger:
|
2021-02-04 18:08:43 +00:00
|
|
|
- release
|
2019-12-15 06:59:45 +00:00
|
|
|
- dev
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: Linux
|
|
|
|
pool:
|
2020-03-13 23:19:55 +00:00
|
|
|
vmImage: 'ubuntu-18.04'
|
2019-12-15 06:59:45 +00:00
|
|
|
steps:
|
|
|
|
- script: |
|
|
|
|
sudo apt-get -qq update;
|
|
|
|
sudo pip install --upgrade pip
|
|
|
|
sudo apt-get install python-setuptools;
|
|
|
|
sudo apt-get install libglew-dev libxrandr-dev libxcursor-dev libxinerama-dev libxi-dev;
|
2020-03-13 23:19:55 +00:00
|
|
|
sudo python build_scripts/build_osd.py --tests --tbb --omp --build $HOME/OSDgen/build --src $HOME/OSDgen/src $HOME/OSDinst
|
2019-12-15 06:59:45 +00:00
|
|
|
displayName: 'Building OpenSubdiv'
|
2020-03-13 23:19:55 +00:00
|
|
|
- script: |
|
|
|
|
cd $HOME/OSDgen/build/s
|
|
|
|
sudo ctest -T test -R far
|
|
|
|
displayName: 'Testing OpenSubdiv'
|
|
|
|
- task: PublishTestResults@2
|
|
|
|
inputs:
|
|
|
|
testResultsFormat: cTest
|
|
|
|
testResultsFiles: /home/vsts/OSDgen/build/s/Testing/*/Test.xml
|
2019-12-15 06:59:45 +00:00
|
|
|
- task: PublishPipelineArtifact@0
|
|
|
|
inputs:
|
|
|
|
artifactName: 'osd-linux'
|
|
|
|
targetPath: "/home/vsts/OSDinst"
|
|
|
|
|
|
|
|
|
|
|
|
- job: macOS
|
|
|
|
pool:
|
2022-07-12 21:10:44 +00:00
|
|
|
vmImage: 'macOS-10.15'
|
2019-12-15 06:59:45 +00:00
|
|
|
steps:
|
|
|
|
- script: |
|
2022-07-12 21:10:44 +00:00
|
|
|
/bin/bash -c "sudo xcode-select -s /Applications/Xcode_12.4.app/Contents/Developer"
|
2020-03-13 23:19:55 +00:00
|
|
|
python build_scripts/build_osd.py --tests --tbb --generator Xcode --build $HOME/OSDgen/build --src $HOME/OSDgen/src $HOME/OSDinst
|
2019-12-15 06:59:45 +00:00
|
|
|
displayName: 'Building OpenSubdiv'
|
2020-03-13 23:19:55 +00:00
|
|
|
- script: |
|
|
|
|
cd $HOME/OSDgen/build/s
|
|
|
|
ctest -T test -R far
|
|
|
|
displayName: 'Testing OpenSubdiv'
|
|
|
|
- task: PublishTestResults@2
|
|
|
|
inputs:
|
|
|
|
testResultsFormat: cTest
|
|
|
|
testResultsFiles: /Users/runner/OSDgen/build/s/Testing/*/Test.xml
|
2019-12-15 06:59:45 +00:00
|
|
|
- task: PublishPipelineArtifact@0
|
|
|
|
inputs:
|
|
|
|
artifactName: 'osd-macOS'
|
2020-03-13 23:19:55 +00:00
|
|
|
targetPath: "/Users/runner/OSDinst"
|
2019-12-15 06:59:45 +00:00
|
|
|
|
|
|
|
- job: Windows
|
|
|
|
pool:
|
2020-03-13 23:19:55 +00:00
|
|
|
vmImage: 'windows-2019'
|
2019-12-15 06:59:45 +00:00
|
|
|
steps:
|
|
|
|
- script: |
|
2020-03-13 23:19:55 +00:00
|
|
|
call C:\"Program Files (x86)"\"Microsoft Visual Studio"\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
2019-12-15 06:59:45 +00:00
|
|
|
call set PATH=C:/Python27amd64;C:/Python27amd64/Scripts;%PATH%
|
2020-03-13 23:19:55 +00:00
|
|
|
call python build_scripts/build_osd.py --tests --tbb --omp --build %HOME%/OSDgen/build --src %HOME%/OSDgen/src %HOME%/OSDinst
|
2019-12-15 06:59:45 +00:00
|
|
|
displayName: 'Building OpenSubdiv'
|
2020-03-13 23:19:55 +00:00
|
|
|
- script: |
|
|
|
|
cd %HOME%/OSDgen/build/s
|
|
|
|
ctest -T test -R far
|
|
|
|
displayName: 'Testing OpenSubdiv'
|
|
|
|
- task: PublishTestResults@2
|
|
|
|
inputs:
|
|
|
|
testResultsFormat: cTest
|
|
|
|
testResultsFiles: D:/OSDgen/build/s/Testing/*/Test.xml
|
2019-12-15 06:59:45 +00:00
|
|
|
- task: PublishPipelineArtifact@0
|
|
|
|
inputs:
|
|
|
|
artifactName: 'osd-win64'
|
|
|
|
targetPath: "D:/OSDinst"
|