Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FABCN-420] Remove Azure pipeline warnings #177

Merged
merged 1 commit into from
Jun 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ stages:
set -ev
node common/scripts/install-run-rush.js rebuild
displayName: 'Full rebuild'

- script: |
npx cobertura-merge -o merged_coverage.xml shimcrypto=./libraries/fabric-shim-crypto/coverage/cobertura-coverage.xml shim=./libraries/fabric-shim/coverage/cobertura-coverage.xml contractapi=./apis/fabric-contract-api/coverage/cobertura-coverage.xml -p
condition: or(succeeded(), failed())
- task: PublishTestResults@2
condition: or(succeeded(), failed()) # publish either way
inputs:
Expand All @@ -84,7 +86,7 @@ stages:
condition: or(succeeded(), failed()) # publish either way
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: '**/cobertura-coverage.xml'
summaryFileLocation: 'merged_coverage.xml'
artifactName: 'Unit Test Coverage'
- script: |
mkdir -p $(Build.ArtifactStagingDirectory)/logs
Expand All @@ -102,7 +104,6 @@ stages:
set -ev
node common/scripts/install-run-rush.js publish --include-all --pack --release-folder $(Build.ArtifactStagingDirectory)/tgz --publish
docker image save hyperledger/fabric-nodeenv | gzip > $(Build.ArtifactStagingDirectory)/fabric-nodeenv.tar.gz
displayName: 'Package tgz and docker image'
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)/tgz
Expand Down Expand Up @@ -161,6 +162,7 @@ stages:
- script: |
mkdir -p $(Build.ArtifactStagingDirectory)/testlogs
find . \( -type d -name 'node_modules' \) -prune -o -name '*.build*.log' -exec cp {} $(Build.ArtifactStagingDirectory)/testlogs \;
condition: or(succeeded(), failed())
displayName: 'Copy test logs'
- task: PublishBuildArtifacts@1
condition: or(succeeded(), failed()) # publish either way
Expand All @@ -174,6 +176,7 @@ stages:
pathToPublish: tools/toolchain/network/docker-compose/logs/docker.log
artifactName: nodeenv-docker-image


# Job to handle the auditing of the code
# NPM audit is run on a 'fake' installation of the libraries
# Pulling in all the dependencies it will be able to run NPM AUDIT, and if that returns a
Expand Down