You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: install Cypress binary in the preBuild step (#11)
* chore: refactor postBuild
* feat: install cypress binary preBuild
* chore: run semantic release from beta branch
* trigger build without PR on Circle
* if debug is on, inherit stdio when installing Cypress binary
* update README examples
Copy file name to clipboardExpand all lines: README.md
+19-6
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,26 @@ And then add the plugin's name to the list of build plugins in `netlify.yml` fil
23
23
24
24
### basic
25
25
26
+
Here is the most basic Netlify config file `netlify.yml` in YAML format with just Cypress plugin
27
+
28
+
```yaml
29
+
plugins:
30
+
# local Cypress plugin will test our site after it is built
31
+
- package: netlify-plugin-cypress
32
+
```
33
+
34
+
and its equivalent TOML format `netlify.toml`
35
+
36
+
```toml
37
+
[[plugins]]
38
+
package = "netlify-plugin-cypress"
39
+
```
40
+
41
+
### recommended
42
+
43
+
We strongly recommend setting `CYPRESS_CACHE_FOLDER` to place the Cypress binary _inside the node_modules_ folder to [cache it between builds](https://on.cypress.io/caching)
44
+
26
45
```yaml
27
-
# Netlify config file
28
46
build:
29
47
command: "npm run build"
30
48
publish: "build"
@@ -132,11 +150,6 @@ Set environment variable `DEBUG=netlify-plugin-cypress` to see the debug logs. T
If you see error messages from `cypress` NPM module <code>Error: The cypress npm package is installed, but the Cypress binary is missing.</code> add to your repository <code>package.json</code> scripts <code>"postinstall": "cypress install"</code> command. See <a href="https://github.com/cypress-io/netlify-plugin-cypress-example/blob/master/package.json">netlify-plugin-cypress-example</a> for instance.
138
-
</details>
139
-
140
153
<details>
141
154
<summary>Several versions of Cypress are installed according to the build logs</summary>
142
155
From the Netlify UI under Deploys, pick "Trigger Deploy" and select "Clear cache and deploy site". This should cleanly install new "node_modules" and remove old Cypress versions.
0 commit comments