iotedgedev/vsts_ci/win32/continuous-build-win32.yml

28 строки
1.5 KiB
YAML
Исходник Обычный вид История

2018-12-07 15:34:10 +03:00
steps:
- 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"
- task: UsePythonVersion@0
2019-02-15 10:37:42 +03:00
inputs:
versionSpec: "$(python.version)"
addToPath: true
architecture: "x64"
2019-02-15 10:37:42 +03:00
- pwsh: |
2019-02-15 10:37:42 +03:00
npm i -g iothub-explorer yo generator-azure-iot-edge-module
az --version
az extension add --name azure-iot
& "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
- 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"
- pwsh: |
2018-12-07 15:34:10 +03:00
pip install tox
tox -e "$(TOXENV)"
displayName: "Run tests against iotedgedev source code"