-
Notifications
You must be signed in to change notification settings - Fork 507
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FABG-912] Azure pipeline configuration
Change-Id: Ic086ff681726aa2cdb16aa455225955fd7e3535f Signed-off-by: Troy Ronda <troy@troyronda.com>
- Loading branch information
Showing
10 changed files
with
67 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright the Hyperledger Fabric contributors. All rights reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: $(SourceBranchName)-$(Date:yyyyMMdd)$(Rev:.rrr) | ||
trigger: | ||
- master | ||
pr: | ||
- master | ||
|
||
variables: | ||
GOPATH: $(Agent.BuildDirectory)/go | ||
PATH: $(Agent.BuildDirectory)/go/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin | ||
GOVER: 1.13 | ||
|
||
jobs: | ||
- job: UnitTest | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
dependsOn: [] | ||
timeoutInMinutes: 60 | ||
steps: | ||
- template: install_deps.yml | ||
- checkout: self | ||
# TODO: seperate unit-test and checks. | ||
# TODO: resolve dependencies between dependencies.sh and install_deps.yml | ||
- script: make unit-test | ||
displayName: Run checks and unit test | ||
|
||
- job: IntegrationTest | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
dependsOn: [] | ||
timeoutInMinutes: 60 | ||
steps: | ||
- template: install_deps.yml | ||
- checkout: self | ||
- script: make integration-test | ||
displayName: Run integration test | ||
env: | ||
# TODO: update this variable name in the Makefile | ||
JENKINS_URL: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright the Hyperledger Fabric contributors. All rights reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
steps: | ||
- script: sudo apt-get clean | ||
displayName: Run apt clean | ||
- script: sudo apt-get update | ||
displayName: Run apt update | ||
- script: sudo apt-get install -y gcc haveged libtool make | ||
displayName: Install dependencies | ||
- task: GoTool@0 | ||
inputs: | ||
version: $(GOVER) | ||
goPath: $(GOPATH) | ||
displayName: Install Go $(GOVER) | ||
- script: GO111MODULE=off go get -u github.com/myitcv/gobin | ||
displayName: Install gobin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
run: | ||
concurrency: 4 | ||
deadline: 1m | ||
deadline: 5m | ||
issues-exit-code: 1 | ||
tests: true | ||
build-tags: [] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters