-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* start with basic config files for #116 * link more basic configs * add semaphore CI badge * add basic circle file
- Loading branch information
Showing
4 changed files
with
70 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
pipeline { | ||
agent { | ||
// this image provides everything needed to run Cypress | ||
docker { | ||
image 'cypress/base:10' | ||
} | ||
} | ||
|
||
stages { | ||
stage('build and test') { | ||
environment { | ||
// we will be recording test results and video on Cypress dashboard | ||
// to record we need to set an environment variable | ||
// we can load the record key variable from credentials store | ||
// see https://jenkins.io/doc/book/using/using-credentials/ | ||
CYPRESS_RECORD_KEY = credentials('cypress-example-kitchensink-record-key') | ||
} | ||
|
||
steps { | ||
sh 'npm ci' | ||
sh "npm run test:ci:record" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This folder contains basic configuration files for many CI providers. Each of these files should be enough to get you started running Cypress end-to-end tests. | ||
|
||
CI | basic config file | ||
:--- | :--- | ||
Circle | [circle.yml](circle.yml) | ||
Jenkins | [Jenkinsfile](Jenkinsfile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
version: 2 | ||
jobs: | ||
test: | ||
docker: | ||
- image: cypress/base:10 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- cache-{{ checksum "package.json" }} | ||
- run: | ||
name: Install dependencies | ||
command: npm ci | ||
- run: npm run cy:verify | ||
- save_cache: | ||
key: cache-{{ checksum "package.json" }} | ||
paths: | ||
- ~/.npm | ||
- ~/.cache | ||
- run: | ||
command: npm start | ||
background: true | ||
- run: npm run e2e:record | ||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- test |