Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: codecov/codecov-node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.2
Choose a base ref
...
head repository: codecov/codecov-node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.0.3
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Jul 6, 2018

  1. Support non-git/hg root dirs (#75)

    - Emulate git/hg ignore behavior in non-git/hg dirs
        - Supports certain CI systems, e.g., Heroku CI
    SpainTrain authored and eddiemoore committed Jul 6, 2018
    2

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    39dc2d8 View commit details
  2. v3.0.3

    Ed Moore committed Jul 6, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    15cdae3 View commit details
Showing with 162 additions and 121 deletions.
  1. +7 −2 lib/codecov.js
  2. +143 −112 package-lock.json
  3. +12 −7 package.json
9 changes: 7 additions & 2 deletions lib/codecov.js
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ var fs = require('fs');
var path = require('path');
var request = require('request');
var urlgrey = require('urlgrey');
var walk = require('ignore-walk');
var execSync = require('child_process').execSync;

var detectProvider = require('./detect');
@@ -288,8 +289,12 @@ var upload = function(args, on_success, on_failure){
// List git files
var root = path.resolve(args.options.root || query.root || '.');
console.log('==> Building file structure');
upload += execSync('git ls-files || hg locate', { cwd: root }).toString().trim() + '\n<<<<<< network\n';

try {
upload += execSync('git ls-files || hg locate', { cwd: root }).toString().trim() + '\n<<<<<< network\n';
} catch (err) {
// not a git/hg dir, emulating git/hg ignore behavior
upload += walk.sync({path: root, ignoreFiles: ['.gitignore', '.hgignore']}).join('\n').trim() + '\n<<<<<< network\n';
}
// Make gcov reports
if ((args.options.disable || '').split(',').indexOf('gcov') === -1) {
try {
Loading