2018-12-07 15:34:10 +03:00
|
|
|
steps:
|
2019-05-10 17:45:10 +03:00
|
|
|
- pwsh: |
|
2018-12-07 15:34:10 +03:00
|
|
|
((Get-Content -path "$(BUILD.REPOSITORY.LOCALPATH)\.env.tmp" -Raw) -replace 'IOTHUB_CONNECTION_STRING=".*"','IOTHUB_CONNECTION_STRING="$(IOTHUB_CONNECTION_STRING)"' -replace 'DEVICE_CONNECTION_STRING=".*"','DEVICE_CONNECTION_STRING="$(DEVICE_CONNECTION_STRING)"' -replace 'CONTAINER_REGISTRY_SERVER=".*"','CONTAINER_REGISTRY_SERVER="$(CONTAINER_REGISTRY_SERVER)"' -replace 'CONTAINER_REGISTRY_USERNAME=".*"','CONTAINER_REGISTRY_USERNAME="$(CONTAINER_REGISTRY_USERNAME)"' -replace 'CONTAINER_REGISTRY_PASSWORD=".*"','CONTAINER_REGISTRY_PASSWORD="$(CONTAINER_REGISTRY_PASSWORD)"') | Set-Content -Path "$(BUILD.REPOSITORY.LOCALPATH)\.env.tmp"
|
|
|
|
displayName: "Update .env.tmp file"
|
|
|
|
|
2019-05-10 17:45:10 +03:00
|
|
|
- task: UsePythonVersion@0
|
2019-02-15 10:37:42 +03:00
|
|
|
inputs:
|
2019-05-10 17:45:10 +03:00
|
|
|
versionSpec: "$(python.version)"
|
|
|
|
addToPath: true
|
|
|
|
architecture: "x64"
|
2019-02-15 10:37:42 +03:00
|
|
|
|
2019-05-10 17:45:10 +03:00
|
|
|
- pwsh: |
|
2019-02-15 10:37:42 +03:00
|
|
|
npm i -g iothub-explorer yo generator-azure-iot-edge-module
|
2021-04-09 22:02:04 +03:00
|
|
|
az --version
|
2021-08-25 21:46:57 +03:00
|
|
|
az extension add --name azure-iot
|
2021-04-09 22:02:04 +03:00
|
|
|
& "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe" -m pip install -U setuptools==52.0.0
|
2019-02-15 10:37:42 +03:00
|
|
|
displayName: "Install IoT Hub explorer, Yeoman and Azure IoT Edge Node.js module generator packages"
|
2018-12-07 15:34:10 +03:00
|
|
|
|
2020-12-22 01:00:52 +03:00
|
|
|
- pwsh: |
|
|
|
|
mkdir C:\registry
|
|
|
|
docker run -d -p 5000:5000 --restart=always --name registry -v C:\registry:C:\registry stefanscherer/registry-windows:2.6.2
|
|
|
|
displayName: "Pull and run local registry containers"
|
2021-08-25 21:46:57 +03:00
|
|
|
|
2019-05-10 17:45:10 +03:00
|
|
|
- pwsh: |
|
2018-12-07 15:34:10 +03:00
|
|
|
pip install tox
|
2019-05-10 17:45:10 +03:00
|
|
|
tox -e "$(TOXENV)"
|
2021-08-25 21:46:57 +03:00
|
|
|
displayName: "Run tests against iotedgedev source code"
|