Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update ci docs #679

Merged
merged 1 commit into from
Jun 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions source/guides/guides/continuous-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Cypress should run on **all** CI providers. We currently have seen Cypress worki
Depending on which CI provider you use, you may need a config file. You'll want to refer to your CI provider's documentation to know where to add the commands to install and run Cypress. For more example config files check out any of our {% url "example apps" applications#Kitchen-Sink %}.

{% note info %}
As of Cypress version 3.0, Cypress downloads its binary to the global system cache - on linux thats `~/.cache/Cypress`. In order to run efficiently in CI, we highly recommend you cache the `~/.cache` folder after running `npm install`, [`npm ci`](https://docs.npmjs.com/cli/ci), or equivalents, as demonstrated in the configs below.
As of Cypress version 3.0, Cypress downloads its binary to the global system cache - on linux thats `~/.cache/Cypress`. In order to run efficiently in CI, we highly recommend you cache the `~/.cache` folder after running `npm install`, [`npm ci`](https://docs.npmjs.com/cli/ci) or equivalents as demonstrated in the configs below.
{% endnote %}

## Travis
Expand All @@ -54,7 +54,7 @@ As of Cypress version 3.0, Cypress downloads its binary to the global system cac
```yaml
language: node_js
node_js:
- 8
- 10
cache:
directories:
- ~/.npm
Expand All @@ -74,13 +74,13 @@ Caching folders with NPM modules saves a lot of time after the first build.
```yaml
machine:
node:
version: 8
version: 10
dependencies:
override:
- npm ci
cache_directories:
- ~/.npm
- ~/.cache
pre:
- npm ci
test:
override:
- $(npm bin)/cypress run --record --key <record_key>
Expand All @@ -101,10 +101,10 @@ jobs:
steps:
- checkout
- restore_cache:
key: v1-app
key: cache-deps
- run: npm ci
- save_cache:
key: v1-app
key: cache-deps
paths:
- ~/.npm
- ~/.cache
Expand Down