Skip to content

Commit

Permalink
Run Cypress tests on Travis CI with Mountebank stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbaker committed Jan 3, 2020
1 parent 13f3b08 commit 0ddf230
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,34 @@ language: node_js
node_js:
- 12.2.0

script:
- npm run compile
- npm run lint
- npm test -- --forbid-only --forbid-pending
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

jobs:
include:
- stage: "Tests"
name: "Lint & Test"
script:
- npm run compile
- npm run lint
- npm test -- --forbid-only --forbid-pending
- script:
- npm run cypress:server > /dev/null 2>&1 &
- sleep 3
- npm run cypress:test
name: "Cypress Tests"

0 comments on commit 0ddf230

Please sign in to comment.