Skip to content

Commit

Permalink
🐛 Fix: azure pipeline + coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
upupming committed Jun 8, 2019
1 parent d351648 commit c8129ed
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -7,3 +7,4 @@ node_modules
yarn-error.log
package-lock.json
coverage
.coveralls.yml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
[![version](https://img.shields.io/vscode-marketplace/v/Spades.vs-picgo.svg?style=flat-square&label=vscode%20marketplace)](https://marketplace.visualstudio.com/items?itemName=Spades.vs-picgo)
[![installs](https://img.shields.io/vscode-marketplace/d/Spades.vs-picgo.svg?style=flat-square)](https://marketplace.visualstudio.com/items?itemName=Spades.vs-picgo)
[![Azure DevOps builds (branch)](https://img.shields.io/azure-devops/build/PicGo/9bbe4cd2-a9fe-4547-b13a-60ee81f12932/1/dev.svg?label=azure%20pipeline&style=flat-square)](https://dev.azure.com/PicGo/vs-picgo/_build?definitionId=1)
[![Coveralls github branch](https://img.shields.io/coveralls/github/PicGo/vs-picgo/dev.svg?style=flat-square)](https://coveralls.io/github/PicGo/vs-picgo)
[![Coveralls github branch](https://img.shields.io/coveralls/github/PicGo/vs-picgo/refs/heads/dev.svg?style=flat-square)](https://coveralls.io/github/PicGo/vs-picgo?branch=refs/heads/dev)
[![GitHub stars](https://img.shields.io/github/stars/PicGo/vs-picgo.svg?style=flat-square&label=github%20stars)](https://github.com/PicGo/vs-picgo)
[![PicGo Convention](https://img.shields.io/badge/picgo-convention-blue.svg?style=flat-square)](https://github.com/PicGo/bump-version)

10 changes: 9 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -23,11 +23,19 @@ jobs:
customCommand: 'run test'

# https://stackoverflow.com/questions/45602358/lcov-info-has-absolute-path-for-sf
- script: 'sed -i -- s/..\\..\\//g coverage/lcov.info && npm run coveralls'
- script: |
sed -i -- s/..\\..\\//g coverage/lcov.info && npm run coveralls
displayName: 'Publish code coverage'
env:
COVERALLS_SERVICE_NAME: $(COVERALLS_SERVICE_NAME)
COVERALLS_REPO_TOKEN: $(COVERALLS_REPO_TOKEN)
# https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables
COVERALLS_GIT_COMMIT: $(Build.SourceVersion)
# https://github.com/MicrosoftDocs/vsts-docs/issues/4259
# https://stackoverflow.com/questions/16623835/remove-a-fixed-prefix-suffix-from-a-string-in-bash
COVERALLS_GIT_BRANCH: $(Build.SourceBranch)
COVERALLS_SERVICE_JOB_ID: $(Build.BuildId)
CI_PULL_REQUEST: $(System.PullRequest.PullRequestNumber)
- script: 'npm install -g vsce && vsce package'
displayName: 'Build artifact'

0 comments on commit c8129ed

Please sign in to comment.