forked from PixarAnimationStudios/OpenSubdiv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
72 lines (68 loc) · 2.33 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
trigger:
- release
- dev
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-20.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 libxxf86vm-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 "bfr|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-12'
steps:
- script: |
/bin/bash -c "sudo xcode-select -s /Applications/Xcode_14.2.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 "bfr|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 "bfr|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"