fabric-samples/ci/templates/fabcar/azure-pipelines-go.yml
Andrew Coleman cda88df4f6
FABG-935 GoSDK Fabcar sample (#192)
Fabcar sample demonstrating the use of the new Gateway package in the Go SDK

Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com>
2020-05-27 15:19:16 +01:00

21 lines
491 B
YAML

#
# SPDX-License-Identifier: Apache-2.0
#
steps:
- script: ./startFabric.sh go
workingDirectory: fabcar
displayName: Start Fabric
- task: GoTool@0
displayName: 'Use Go 1.14.2'
inputs:
version: '1.14.2'
- task: Go@0
displayName: 'go build'
inputs:
command: build
arguments: '-o "fabcar"'
workingDirectory: fabcar/go
- script: DISCOVERY_AS_LOCALHOST=TRUE ./fabcar
workingDirectory: fabcar/go
displayName: Run FabCar Application