Skip to content

Instantly share code, notes, and snippets.

@kianaditya
Created December 6, 2019 11:24
Show Gist options
  • Save kianaditya/ae9fbb437583a04edfdfe0d6aade6fe9 to your computer and use it in GitHub Desktop.
Save kianaditya/ae9fbb437583a04edfdfe0d6aade6fe9 to your computer and use it in GitHub Desktop.
Travis CI basic configuration for cypress
language: node_js
node_js:
- 12
addons:
apt:
packages:
# Ubuntu 16+ does not install this dependency by default, so we need to install it ourselves
- libgconf-2-4
cache:
# Caches $HOME/.npm when npm ci is default script command
# Caches node_modules in all other cases
npm: true
directories:
# we also need to cache folder with Cypress binary
- ~/.cache
install:
- npm ci
script:
- $(npm bin)/cypress run --record
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment