Skip to content

Commit

Permalink
perf: trying to improve travis-ci conf
Browse files Browse the repository at this point in the history
  • Loading branch information
huafu committed Aug 12, 2018
1 parent 37a0187 commit e4b4d95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
dist: trusty
sudo: required
language: node_js

env:
Expand Down
11 changes: 8 additions & 3 deletions e2e/__helpers__/test-case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,16 @@ export function sanitizeOutput(output: string): string {
.trim()
// removes total and estimated times
.replace(
/^(\s*Time\s*:\s*)[\d.]+m?s(?:(,\s*estimated\s+)[\d.]+m?s)?(\s*)$/gm,
(_, start, estimatedPrefix, end) => {
return `${start}XXs${end}`;
/^(\s*Time\s*:\s*)[\d.]+m?s(?:(,\s*estimated\s+)[\d.]+m?s)?$/gm,
(_, start) => {
return `${start}XXs`;
},
)
// remove times after PASS/FAIL path/to/file (xxxs)
.replace(
/^\s*((?:PASS|FAIL) .+) \([\d.]+m?s\)$/gm,
(_, start) => `${start}`,
)
// removes each test time values
.replace(
/^(\s*)(✕|×|✓|√)(\s+[^\(]+)(\s+\([\d.]+m?s\))?$/gm,
Expand Down

0 comments on commit e4b4d95

Please sign in to comment.