1
1
# https://aka.ms/yaml
2
+ # https://aka.ms/hosted-agent-software
2
3
# https://docs.microsoft.com/en-us/azure/devops/pipelines/scripts/cross-platform-scripting
3
4
# https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azdevops&tabs=yaml
4
5
# https://github.com/OpenImageIO/oiio/blob/master/INSTALL.md
22
23
azure.vm_image : ' macOS-10.13'
23
24
src.python : ' $(Agent.BuildDirectory)/s/src/python'
24
25
src.vcpkg : ' $(Agent.BuildDirectory)/s/src/vcpkg'
26
+ tests : ' $(Agent.BuildDirectory)/s/tests'
25
27
install.vcpkg : $(Agent.BuildDirectory)/s/vcpkg
26
28
pypackage.version : ' 2.0.4+$(Build.BuildNumber)'
27
29
pypackage.os_name : ' Microsoft :: MacOS'
@@ -65,18 +67,19 @@ jobs:
65
67
66
68
# Copy customized port(s) into place
67
69
- bash : |
68
- cp -r -v $(src.vcpkg)/ports/python3-py$(python.version)/* $(install.vcpkg)/ports/python3
70
+ cp -r -v $(src.vcpkg)/ports/python3-py$(python.version).$(python.version_patch) /* $(install.vcpkg)/ports/python3
69
71
cp -r -v $(src.vcpkg)/ports/openimageio-py$(python.version)/* $(install.vcpkg)/ports/openimageio
70
72
cp -r -v $(src.vcpkg)/ports/pybind11-py$(python.version)/* $(install.vcpkg)/ports/pybind11
71
73
displayName: Override vcpkg port files
72
74
73
- # Install pybind11 via vcpkg
75
+ # Install python3 and pybind11 via vcpkg
74
76
- bash : |
75
77
cd $(install.vcpkg)
76
78
./vcpkg list
79
+ ./vcpkg install python3:x64-osx
77
80
./vcpkg install pybind11:x64-osx
78
81
./vcpkg list
79
- displayName: Install pybind11
82
+ displayName: Install python3 and pybind11
80
83
81
84
# Install oiio prerequisites via vcpkg
82
85
- bash : |
@@ -124,4 +127,15 @@ jobs:
124
127
- task : PublishBuildArtifacts@1
125
128
inputs :
126
129
pathtoPublish : ' $(Build.ArtifactStagingDirectory)'
127
- artifactName : drop-$(python.version)
130
+ artifactName : drop-$(python.version)
131
+
132
+ # Tests
133
+ - bash : |
134
+ cd $(tests)
135
+ python --version
136
+ pip list
137
+ pip install $(Build.ArtifactStagingDirectory)/*.whl
138
+ pip install pytest
139
+ pip list
140
+ pytest --verbose
141
+ displayName: Run rudimental test(s)
0 commit comments