Skip to content

Commit

Permalink
Update to Cypress 3.0 (#69)
Browse files Browse the repository at this point in the history
* update circle ci to v2

* update travis, appveyor

* update package-lock

* update travis config

* set npm version travisCi
  • Loading branch information
kuceb authored and bahmutov committed Jun 6, 2018
1 parent 0e4b28b commit ea0487a
Show file tree
Hide file tree
Showing 7 changed files with 4,140 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.5.0
8.11.2
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
package-lock=false
save-exact=true
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ language: node_js
node_js:
- 8

cache:
directories:
- ~/.npm
- ~/.cache

before_install:
- npm i -g npm@latest

install:
- npm ci

before_script:
## runs the 'start' script which
## boots our local app server on port 8080
Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# https://www.appveyor.com/docs/lang/nodejs-iojs/
# Test against the latest version of this Node.js version
environment:
nodejs_version: "6"
nodejs_version: "8"

# Install scripts. (runs after repo cloning)
install:
- ps: Install-Product node $env:nodejs_version
# NPM v3 has flaky permission issues on Windows
- npm install -g npm@5
- npm install -g npm@6
# Output useful info for debugging.
- node --version
- npm --version
- npm i -g commit-message-install
- commit-message-install --else "npm install"
- commit-message-install --else "npm ci"

# Post-install test scripts.
test_script:
Expand Down
55 changes: 22 additions & 33 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,22 @@
machine:
node:
version: 6.5.0

test:
pre:
## runs the 'start' script which
## boots our local app server on port 8080
## which cypress expects to be running
- npm start:
background: true
override:
## lint source files
- npm run lint
## check if all script names use colons
- npm run colon:names
## and if any of the files changed
## we should stop the build - someone forgot to
## check in linted source files!
- $(npm bin)/stop-build
## now run cypress headlessly
## and record all of the tests.
## Cypress will search for a
## CYPRESS_RECORD_KEY environment
## variable by default and apply
## this to the run.
- $(npm bin)/cypress run --record

## alternatively we could specify
## a specific record key to use
## like this without having to
## configure environment variables
## - $(npm bin)/cypress run --record --key <your_record_key>
version: 2
jobs:
build:
docker:
- image: cypress/base:8
environment:
## this enables colors in the output
TERM: xterm
working_directory: ~/app
steps:
- checkout
- restore_cache:
key: v1-deps
- run:
name: Install Dependencies
command: npm ci
- save_cache:
key: v1-deps
paths:
- ~/.npm
- ~/.cache
- run: npm run test:ci:record
Loading

0 comments on commit ea0487a

Please sign in to comment.