Commit Graph

114 Commits

Author SHA1 Message Date
Josh Ward
482358b824 feat: add CYPRESS_SKIP_VERIFY option to suppress verification (#29836)
* misc: add `CYPRESS_SKIP_VERIFY` option to suppress verification

* Update CHANGELOG.md

* Move changelog entry to feature

* Whoops - features

* Update CHANGELOG.md

* Update cli/lib/tasks/verify.js

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Update cli/lib/tasks/verify.js

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Update cli/lib/tasks/verify.js

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Appease the linter

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2024-08-16 12:45:34 -04:00
Mike McCready
d8884e0a34 misc: update postinstall cypress open instructions (#29957)
* misc: update postinstall cypress open instructions

* add spacing line

* prepend dashes to command list

* update semver for change

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-08-02 15:40:41 -04:00
Bill Glesias
c1304b2775 fix: avoid ANSI character output when running the binary smoke test f… (#28994) 2024-02-22 14:29:49 -05:00
Camille Drapier
7c4d941d46 fix: Hanging indefinitely when unzip fails with an empty error (#28850) 2024-02-14 11:10:09 -05:00
Emily Rohrbough
f53ca92f5c fix: no longer swallow stderr logs on linux (#28380) 2023-12-05 10:12:14 -05:00
Mahdi Khashan
63be85f465 fix: updated CYPRESS_DOWNLOAD_PATH_TEMPLATE regex to allow multiple replacements (#25531) 2023-05-05 11:08:59 -06:00
Emily Rohrbough
52e9dbc100 chore: update next-version to handle using the next bump package.json… (#25599)
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2023-01-27 15:50:21 -06:00
Ryan Manuel
8562cba558 feat: add reject unauthorized to api server calls and standardize CA usage (#24493) 2022-11-04 15:27:31 -05:00
Tomas Bjerre
7489561fbf feat: including version in CYPRESS_DOWNLOAD_PATH_TEMPLATE (refs #5141 #16976 #22864) (#23194)
Co-authored-by: Blue F <blue@cypress.io>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-08-16 08:49:56 -05:00
Zach Bloomquist
61f19c0450 feat: build Cypress for linux-arm64 (#22252) 2022-06-15 16:22:10 +00:00
Zach Bloomquist
e18b0d567e feat: build Cypress for darwin-arm64 (#20686) 2022-06-15 15:24:50 +00:00
Zach Bloomquist
546ed16c77 fix(cli): show additional mitigation steps for max path length error (#21047) 2022-04-14 16:23:31 +00:00
Zach Bloomquist
6a4823b5e1 fix(cli): decrease the length of pre-release cache path (#20961) 2022-04-07 17:41:44 +00:00
Amos Wong
6915b8e3de feat: support escaped dollar sign in CYPRESS_DOWNLOAD_PATH_TEMPLATE (#20698)
* refactor: break pathTemplate replace logic into multiple lines

* feat: support escape dollar sign in download path template

* feat: support CYPRESS_DOWNLOAD_PATH_TEMPLATE wrapped in quote

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-03-24 13:21:19 -07:00
Zach Bloomquist
3c286177cc fix: use unique install cache folders for betas (#20296) 2022-03-04 22:22:39 +00:00
Jess
6ea3a8cb06 chore: fixing m1 installation issues for m1 macs (#20345) 2022-02-23 18:36:59 -05:00
Emily Rohrbough
17f272e9ee chore: fix cypress npm package artifact upload path (#20023) 2022-02-04 12:00:08 -06:00
Juan Julián Merelo Guervós
21cc95b8c4 chore: url → Eliminate obsolete "url" library from the cli subpackage (#19695)
Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
2022-01-20 10:22:28 -06:00
Harles-Herman Pilter
2685f82663 feat: env to use path params in download url (#19526)
* feat: env to use path params in download url

* feat: change env to url template

* feat: fix snapshot

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-01-18 08:07:52 -08:00
Pascal Gafner
576519e465 fix: use util.getEnv to handle environment variables set with npm (#19560)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-01-12 08:52:26 -06:00
David Ihnen
df5687c65d fix: Inability to download with redirects through a proxy (#19310)
* Fixes inability to download with redirects through a proxy

* lint fixes

* t

* tests are passing

* tests pass and works

* a little cleanup

* oops, @cypress/request

* nuding the ci system

* Fix race condition in verify code

* address comments on pull request

* a test with multiple layers of redirects

* Add tests and mechanism for redirect loop error

* Make informative error message

* Remove environment config option for now

* test assertion pattern

Co-authored-by: David Ihnen <dihnen.ctr@kr.af.mil>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-01-05 14:01:35 -08:00
Tyler Biethman
7476843d80 fix: Use CYPRESS_VERIFY_TIMEOUT as integer. (#19517)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-01-04 11:19:49 -06:00
Pascal Gafner
b3d114e086 fix: add CYPRESS_VERIFY_TIMEOUT param and a test for it (#19282)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2021-12-20 11:36:38 -05:00
Tim Griesser
e4f5b106d4 feat: use hoisted yarn install in binary build (#17285) 2021-11-20 14:19:51 -05:00
Jennifer Shehane
0273f3ebae Merge branch 'develop' into 9.0-release 2021-11-01 11:58:55 -06:00
Tim Griesser
c0d781d28f refactor: remove Ramda (#18723) 2021-11-01 13:37:33 -04:00
Emily Rohrbough
e396956534 feat: remove windows 32-bit support (#18630)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Zach Bloomquist <git@chary.us>
2021-10-29 08:54:02 -05:00
Arne Westphal
8249d2ee0c fix(cli): Respect NO_PROXY on cypress download (#17702)
Co-authored-by: Zach Bloomquist <git@chary.us>
2021-09-20 18:25:54 +00:00
Nikolai Røed Kristiansen
39e1786211 chore: Vendor @cypress/listr-verbose-renderer (#16855) 2021-06-08 14:08:14 -05:00
Braden Mars
315d845432 fix: Migrate from listr to listr2 (#16663) 2021-06-01 10:26:03 -04:00
Kukhyeon Heo
8e0e3c1b50 chore: update extract-zip to 2.0.1 (#16544) 2021-05-17 20:11:05 +00:00
Minijus L
6bc7e7da0f fix: use 'ca' and 'cafile' npm config options for binary download (#8877)
Co-authored-by: Zach Bloomquist <github@chary.us>
2021-05-10 22:14:54 +00:00
Zach Bloomquist
09afc48e14 fix(cli): use per-pid filename for downloaded cypress zip (#14952) 2021-02-09 15:02:37 +00:00
Jennifer Shehane
d1d15e6cfe chore: Replace usage of moment in cli / server code (#9069) 2021-01-26 13:49:21 +06:30
Jennifer Shehane
bb0d98d3c6 Merge branch 'develop' into v6.0-release 2020-11-17 22:38:39 +06:30
Gleb Bahmutov
84d1afd27d feat: print bundled Node and Electron versions in cypress version (#9183) 2020-11-16 13:17:24 -05:00
Jennifer Shehane
3a8d9e62d4 chore: Remove code around deprecated APIs (#8951) 2020-10-27 00:45:19 +06:30
Greg Lahaye
b56c8c8688 feat: add cache prune command (#8766)
Co-authored-by: Zach Bloomquist <github@chary.us>
2020-10-09 15:14:19 -04:00
Kukhyeon Heo
aa4772c4cf feat: Print folder sizes with cypress cache list command. (#8590) 2020-10-05 11:31:59 -04:00
Zach Bloomquist
fe4e11ec6e feat(cli): install pre-release binaries by computing binary URL from NPM URL (#8483) 2020-09-08 17:44:37 -04:00
Gleb Bahmutov
3b6514399d Do not silence cli commands (#6909)
* always log cache path

* cache list always logs

* cypress version should always log result
2020-04-01 11:44:27 -04:00
Zach Bloomquist
d810950379 Switch request, request-promise to @cypress/ forks (#6777) 2020-03-19 11:48:24 +06:30
Jennifer Shehane
c40461fa22 Don't print 'first time' message if verification is running fro… (#6640)
* don't like 'first time' message if verification is running from 'cypress verify'

* updates snapshots to remove 'first time message' from verify specs
2020-03-16 12:18:38 +06:30
Gleb Bahmutov
2a0bc32700 cypress cache list prints last accessed date (#6627)
* get last access timestamps and print with cache versions

* remove done TODO

* start trying to save HTML but only after snapshot text is confirmed

* store cli test output HTML as static pages

* set our color for table heading

* make code readable

* lock file again

* update saved HTML file

* refactor cache spec

* add test with no access time:
2020-03-09 09:27:54 -04:00
renovate[bot]
eab801ae3f chore(deps): Update dependency eslint to version 6.8.0 🌟 (#6509)
* chore(deps): Update eslint to 6.8.0 🌟

* fix missing dangling commas for linter

* fix missing dangling commas for linter

* more lint fixes

* yarn lock

Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2020-02-25 00:09:47 +06:30
Gleb Bahmutov
070fceff20 add "cypress info" command (#6372)
* WIP: add cli info command to list detected browsers

* print found browsers

* change to list

* start work on info command calling into binary

* move info command into binary

* print OS info during cypress info command

* add binary cache path to info command

* add browser profile path

* add memory

* get browser profile path without partition

* pick real browsers as examples

* output same info as desired

* better names

* changed colors

* add list of cached binary versions

* do not put stable into name

* add underlined link

* conditionally show profile path, only if the folder exists

* do not list cached binaries

* human-friendly memory print

* print env proxy vars

* print CYPRESS_ env variables

* use _.sample

* update order

* store cypress info output on CI as HTML page artifact

* add percy CLI screenshots

* sanitize cypress info command

* store CLI snapshots in cli/visual-snapshots folder

* update cli unit snapshot

* add cli unit test

* start e2e testing for cypress info

* add test with proxy and cypress vars

* make sure we call the binary

* stricter start check

* start unit testing modes info

* test info mode browser print

* add test for profile path

* add cypress info command to test binary Circle job

* add cypress info to test-binary-as-specific-user circle

* print cypress info --dev on circle and on appveyor

* update .gitignore

* move error in environment load to debug
2020-02-20 10:54:25 -05:00
Gleb Bahmutov
e389db4089 Move binary state file to be in the version folder of the cache (#6090)
* WIP: small refactoring for clarity

* move binary state file to version dir

* add issue link
2020-01-06 16:32:03 -05:00
Zach Bloomquist
b130ffca87 Prevent Cypress from showing 200% unzip progress (#6009)
* Prevent unzipWithNode from getting called twice

* fix unzip test

* add unit test to check if unzip is called once

* add unzip test for Darwin

Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com>
2019-12-26 12:37:09 -05:00
Zach Bloomquist
02515fec61 cli: unnzip Cypress using unzip utility on Linux (#5851)
* unzip using 'unzip' utility on linux

* add example unzip test
2019-12-03 09:19:12 -05:00
Gleb Bahmutov
fcc252e94d Always use --no-sandbox with Electron on non-Windows system (#5458)
* WIP: add failing test job with non-root user

* change paths to node user

* print more info

* always use --no-sandbox when starting Electron on non-Windows OS

* add another test job that runs as a root

* use tilda

* use 12.0.0 image

* rename job
2019-10-25 10:54:03 -04:00