Skip to content

Commit

Permalink
feat(cli): For CI, enable verbose flag
Browse files Browse the repository at this point in the history
  • Loading branch information
wadackel committed Nov 2, 2020
1 parent 7248532 commit 0cd3e16
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"enquirer": "^2.3.6",
"execa": "^4.1.0",
"fast-glob": "^3.2.2",
"is-ci": "^2.0.0",
"listr": "^0.14.3",
"markdown-table": "^2.0.0",
"node-emoji": "^1.10.0",
Expand All @@ -56,6 +57,7 @@
},
"devDependencies": {
"@acot/mock-logger": "0.0.1",
"@types/is-ci": "^2.0.0",
"@types/listr": "^0.14.2",
"@types/node-emoji": "^1.8.1",
"@types/prettier": "^2.1.5",
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/src/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import type {
Timing,
} from '@acot/types';
import { parseViewport } from '@acot/utils';
import isCI from 'is-ci';
import table from 'markdown-table';
import { createCommand } from '../command';
import { debug } from '../logging';
Expand Down Expand Up @@ -202,7 +203,7 @@ export default createCommand({
const cfg: ReporterFactoryConfig<any> = {
stdout: logger.getStdout(),
stderr: logger.getStderr(),
verbose: !!args.verbose, // TODO isCI
verbose: !!args.verbose || isCI,
options: {},
config,
};
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2861,6 +2861,11 @@
dependencies:
"@babel/types" "^7.3.0"

"@types/ci-info@*":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@types/ci-info/-/ci-info-2.0.0.tgz#51848cc0f5c30c064f4b25f7f688bf35825b3971"
integrity sha512-5R2/MHILQLDCzTuhs1j4Qqq8AaKUf7Ma4KSSkCtc12+fMs47zfa34qhto9goxpyX00tQK1zxB885VCiawZ5Qhg==

"@types/cross-spawn@^6.0.0":
version "6.0.2"
resolved "https://registry.yarnpkg.com/@types/cross-spawn/-/cross-spawn-6.0.2.tgz#168309de311cd30a2b8ae720de6475c2fbf33ac7"
Expand Down Expand Up @@ -2898,6 +2903,13 @@
resolved "https://registry.yarnpkg.com/@types/html-minifier-terser/-/html-minifier-terser-5.1.1.tgz#3c9ee980f1a10d6021ae6632ca3e79ca2ec4fb50"
integrity sha512-giAlZwstKbmvMk1OO7WXSj4OZ0keXAcl2TQq4LWHiiPH2ByaH7WeUzng+Qej8UPxxv+8lRTuouo0iaNDBuzIBA==

"@types/is-ci@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@types/is-ci/-/is-ci-2.0.0.tgz#e2b81d0f9275861649d501dbc39a480fbf311459"
integrity sha512-J8ytIdkALbTrqcJ6OZiEv0B9skfyok/zCDj1q06GGCDa1rlHnPobUBT0BYR1vku2oZVwVEgCurtXqCASAfjCiQ==
dependencies:
"@types/ci-info" "*"

"@types/is-function@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@types/is-function/-/is-function-1.0.0.tgz#1b0b819b1636c7baf0d6785d030d12edf70c3e83"
Expand Down

0 comments on commit 0cd3e16

Please sign in to comment.