Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
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
67 changes: 0 additions & 67 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

| Build | Code Coverage | Dependencies |
|-------|---------------|--------------|
| [![Build Status](https://dev.azure.com/atom-github/GitHub%20package%20for%20Atom/_apis/build/status/atom.github)](https://dev.azure.com/atom-github/GitHub%20package%20for%20Atom/_build/latest?definitionId=1) | [![Coverage Status](https://coveralls.io/repos/github/atom/github/badge.svg?branch=master)](https://coveralls.io/github/atom/github?branch=master) | [![Greenkeeper badge](https://badges.greenkeeper.io/atom/github.svg)](https://greenkeeper.io/) [![Dependency Status](https://david-dm.org/atom/github.svg)](https://david-dm.org/atom/github) |
| [![Build Status](https://dev.azure.com/atom-github/GitHub%20package%20for%20Atom/_apis/build/status/atom.github)](https://dev.azure.com/atom-github/GitHub%20package%20for%20Atom/_build/latest?definitionId=1) | [![codecov](https://codecov.io/gh/atom/github/branch/master/graph/badge.svg)](https://codecov.io/gh/atom/github) | [![Greenkeeper badge](https://badges.greenkeeper.io/atom/github.svg)](https://greenkeeper.io/) [![Dependency Status](https://david-dm.org/atom/github.svg)](https://david-dm.org/atom/github) |

The Atom GitHub package provides Git and GitHub integration for Atom. Check out [github.atom.io](https://github.atom.io) for more information.

Expand Down
15 changes: 15 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ jobs:
- bash: npm run report:coverage
displayName: generate code coverage reports
condition: succeededOrFailed()
- bash: npm run codecov -- --build="Linux $(atom_channel)"
displayName: publish code coverage to CodeCov
env:
CODECOV_TOKEN: $(codecov.token)
condition: succeededOrFailed()
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: cobertura
Expand Down Expand Up @@ -101,6 +106,11 @@ jobs:
- bash: npm run report:coverage
displayName: generate code coverage reports
condition: succeededOrFailed()
- bash: npm run codecov -- --build="MacOS $(atom_channel)"
displayName: publish code coverage to CodeCov
env:
CODECOV_TOKEN: $(codecov.token)
condition: succeededOrFailed()
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: cobertura
Expand Down Expand Up @@ -165,6 +175,11 @@ jobs:
- powershell: npm run report:coverage
displayName: generate code coverage reports
condition: succeededOrFailed()
- powershell: npm run codecov -- --build="Windows $(atom_channel)"
displayName: publish code coverage to CodeCov
env:
CODECOV_TOKEN: $(codecov.token)
condition: succeededOrFailed()
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: cobertura
Expand Down
14 changes: 14 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
coverage:
status:
project:
default:
# Allow coverage to drop by as much as 2% from the parent commit or pull request base
threshold: 2

patch:
default:
threshold: 2

changes:
default:
threshold: 2
71 changes: 46 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"test:coverage:html": "nyc --reporter=html npm run test:coverage",
"test:coverage:lcov": "npm run test:coverage",
"test:snapshot": "cross-env-shell ATOM_GITHUB_TEST_SUITE=snapshot \"${ATOM_SCRIPT_PATH:-atom} --test test\"",
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"report:coverage": "nyc report --reporter=cobertura --reporter=html",
"codecov": "codecov",
"report:coverage": "nyc report --reporter=cobertura --reporter=html --reporter=lcovonly",
"lint": "eslint --max-warnings 0 test lib",
"fetch-schema": "node script/fetch-schema",
"relay": "relay-compiler --src ./lib --schema graphql/schema.graphql"
Expand Down Expand Up @@ -78,7 +78,7 @@
"babel-plugin-istanbul": "4.1.6",
"chai": "4.1.2",
"chai-as-promised": "7.1.1",
"coveralls": "^3.0.1",
"codecov": "3.1.0",
"cross-env": "5.2.0",
"cross-unzip": "0.2.1",
"dedent-js": "1.0.1",
Expand Down