Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Sign In

Alorel / personal-build-tools / 367

23 Oct 2018 - 20:45 coverage increased (+5.02%) to 78.602%
367

Pull #33

travis-ci-com

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
fix travis typecheck script
Pull Request #33: Build

374 of 617 branches covered (60.62%)

Branch coverage included in aggregate %.

288 of 325 new or added lines in 9 files covered. (88.62%)

178 existing lines in 29 files now uncovered.

1470 of 1729 relevant lines covered (85.02%)

38.24 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

73.08
/src/lib/init/00_releaserc.ts
1
import * as fs from 'fs';
2
import {Fixture} from '../Fixture';
8×
3
import {Git} from '../Git';
8×
4
import {Log} from '../Log';
8×
5

8×
6
const enum Conf {
8×
7
  FILE = '.releaserc.yml'
8
}
56×
9

56×
10
export function handle(): void {
11
  const hasReleaseRc: boolean = (() => {
12
    const rds = fs.readdirSync(process.cwd(), 'utf8');
50×
13

248×
UNCOV
14
    for (const f of rds) {
!
15
      if (f.startsWith('.releaserc')) {
Branches [[1, 0]] missed. 50×
16
        return true;
50×
17
      }
18
    }
UNCOV
19

!
20
    return false;
UNCOV
21
  })();
Branches [[2, 0], [2, 1]] missed. !
22

50×
23
  if (hasReleaseRc) {
50×
24
    Log.info('Skipping .releaserc');
25

50×
26
    return;
2×
UNCOV
27
  }
!
28

29
  new Fixture('init').copy(Conf.FILE, Conf.FILE);
6×
30
  Git.add(Conf.FILE);
31

32
  Log.success('Generated .releaserc');
33
}
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
BLOG · TWITTER · Legal & Privacy · Supported CI Services · What's a CI service? · Automated Testing

© 2022 Coveralls, Inc