Commit Graph

17 Commits

Author SHA1 Message Date
Gleb Bahmutov
9f082d97ca Catch env variable with reserved name CYPRESS_ENV 1621 (#1626)
* server: check CYPRESS_ENV variable when merging configs

* catch invalid CYPRESS_ENV value in CLI, close #1621

* linting

* sanitize platform in test snapshot

* linting

* update error message text

* add missing comma

* fix finally merge in JS code

* pass CLI linter

* fix log reference, should be debug

* use correct sinon reference

* update message, show first part in red

* update error message text
2019-09-23 11:59:49 -04:00
Brian Mann
173849f4ab cli: normalized all start methods 2017-09-04 00:00:41 -04:00
Brian Mann
89632bbbaf cli: move titleize to be reusable 2017-09-03 23:40:12 -04:00
Brian Mann
42ca775755 cli: WIP, move to listr for user notifications, extract and begin refactoring into multiple tasks and files
- cleaned up lots of redundant error handling
- do not ever forcibly exit early
- add user messaging for global installations
- add user messaging for opening cypress
- enable CYPRESS_BINARY_VERSION to be set, with warning
2017-09-03 21:28:59 -04:00
Brian Mann
4ddb54dd57 cli: update to use tasks path 2017-09-03 00:02:51 -04:00
Brian Mann
f29b3b9b1f cli: code cleanup, formatting, content improvements 2017-09-02 23:34:05 -04:00
Brian Mann
1e1a58330d cli: rename exitGracefully to exit1, DRY up usage 2017-09-02 23:33:23 -04:00
Chris Breiding
1fac6d58d9 snapshot various log states (wip) 2017-09-01 17:26:08 -04:00
Gleb Bahmutov
4dd981d14f cli: remove unnecessary open 2017-06-20 16:26:02 -04:00
Gleb Bahmutov
edb0166a2d remove commented out line 2017-06-20 11:59:28 -04:00
Gleb Bahmutov
9b28249152 cli: add --detached mode 2017-06-20 11:56:49 -04:00
Gleb Bahmutov
82e8fe395c cli: run Cypress app in attached mode, close #147 2017-06-20 11:33:39 -04:00
Gleb Bahmutov
b331cb54f0 Issue 156 cli node 0.12 (#158)
* cli: set engines node > 0.12

* cli: trying to transpile using babel-register on the fly

* downgrading fs-extras to 1.0.0 to let it work on Node 0.12

* lint and enforce single quote on strings

* remove individual plugins

* cli: include dist folder in the npm package

* cli: add build step on prepublish, add readme

* cli: use default options, because code is transpiled

* cli: output into es5

* cli: see published size, a few missing requires

* cli: replace const with var in node 0.12

* cli: cache node_modules on CircleCI

* cli: back to use const that is not changed to let by eslint

* cli: build separate package for npm publishing

* remove postinstall step

* cli: remove npm vs dev install check
2017-06-19 12:14:06 -04:00
Gleb Bahmutov
8e1776c870 Issue 146: uniform CLI error reporting (#149)
* cli: shorter install message without undefined for #146

* cli: show relative path after install

* cli: debug install process

* cli: print message if using CYPRESS_VERSION

* cli: tests for CYPRESS_VERSION install

* cli: needed version message

* cli: verify app after download on install

* cli: do not verify app on install, wait until it runs

* cli: add verify command

* cli: good messags for missing app binary

* cli: xvfb error

* add missing app error

* linting

* cli: errors reported using same function

* print stack in error message for some errors

* show path checked

* use same error mechanism for download errors

* cli: unzip should report error the same way as the rest of CLI

* update some error language

* consolidate urls in error messages

* show terminal info

* terminal check outside of code

* cli: detect CI, do not use progress bar

* cli: test mock bar

* remove context.only
2017-06-09 17:37:48 -04:00
Brian Mann
dc9b835a58 cli: enable returning node module interface
-have binary call directly into the CLI
2017-06-05 18:31:44 -04:00
Brian Mann
b2bad45cec cl: change logic to always download unless told via CYPRESS_DOWNLOAD env var 2017-06-05 18:06:45 -04:00
Brian Mann
101aac9c9b cli: move cli into subfolder, refactor cli scripts
-cleanup root monorepo files
-prevent downloading cypress binary when in development
-remove app-module-path
2017-06-05 17:26:51 -04:00