mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-02 00:00:07 +00:00
1ce2248eb9
Updated platform requirements to Ubuntu 18.04, macOS 10.14, and Windows 2019. And added execution of CTest tests and publishing of test results.
73 lines
2.3 KiB
YAML
73 lines
2.3 KiB
YAML
trigger:
|
|
- master
|
|
- dev
|
|
|
|
jobs:
|
|
- job: Linux
|
|
pool:
|
|
vmImage: 'ubuntu-18.04'
|
|
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;
|
|
sudo python build_scripts/build_osd.py --tests --tbb --omp --build $HOME/OSDgen/build --src $HOME/OSDgen/src $HOME/OSDinst
|
|
displayName: 'Building OpenSubdiv'
|
|
- 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
|
|
- task: PublishPipelineArtifact@0
|
|
inputs:
|
|
artifactName: 'osd-linux'
|
|
targetPath: "/home/vsts/OSDinst"
|
|
|
|
|
|
- job: macOS
|
|
pool:
|
|
vmImage: 'macOS-10.14'
|
|
steps:
|
|
- script: |
|
|
/bin/bash -c "sudo xcode-select -s /Applications/Xcode_10.1.app/Contents/Developer"
|
|
python build_scripts/build_osd.py --tests --tbb --generator Xcode --build $HOME/OSDgen/build --src $HOME/OSDgen/src $HOME/OSDinst
|
|
displayName: 'Building OpenSubdiv'
|
|
- 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
|
|
- task: PublishPipelineArtifact@0
|
|
inputs:
|
|
artifactName: 'osd-macOS'
|
|
targetPath: "/Users/runner/OSDinst"
|
|
|
|
- job: Windows
|
|
pool:
|
|
vmImage: 'windows-2019'
|
|
steps:
|
|
- script: |
|
|
call C:\"Program Files (x86)"\"Microsoft Visual Studio"\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
|
call set PATH=C:/Python27amd64;C:/Python27amd64/Scripts;%PATH%
|
|
call python build_scripts/build_osd.py --tests --tbb --omp --build %HOME%/OSDgen/build --src %HOME%/OSDgen/src %HOME%/OSDinst
|
|
displayName: 'Building OpenSubdiv'
|
|
- 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
|
|
- task: PublishPipelineArtifact@0
|
|
inputs:
|
|
artifactName: 'osd-win64'
|
|
targetPath: "D:/OSDinst"
|