forked from cypress-io/cypress-example-kitchensink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
33 lines (31 loc) · 1.21 KB
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Netlify configuration
# https://docs.netlify.com/configure-builds/file-based-configuration/
[build]
# Directory (relative to root of your repo) that contains the deploy-ready
# HTML files and assets generated by the build. If a base directory has
# been specified, include it in the publish directory path.
publish = "app"
# not a real build command for this repo,
# shows Cypress-related build agent info
command = "npx cypress info && npx cypress cache list"
[build.environment]
# do not show Cypress installation progress messages
CI = "1"
# cache Cypress binary in local "node_modules" folder
# so Netlify caches it
CYPRESS_CACHE_FOLDER = "./node_modules/CypressBinary"
# set TERM variable for terminal output
TERM = "xterm"
[[plugins]]
# https://github.com/cypress-io/netlify-plugin-cypress
package = "netlify-plugin-cypress"
# we don't need to run all tests, just a few sanity specs
# and run them after deploy. Also we do not need to
# run the tests against the deployed site (hardcoded urls!)
[plugins.inputs]
enable = false
# let's test the local site before deploy
[plugins.inputs.postBuild]
enable = true
record = true
spec = "cypress/e2e/2-advanced-examples/w*.js"