pipeline and dashboard setup

master
helenanull 4 years ago
parent e033a91f1c
commit 4e75cee9ce

24
Jenkinsfile vendored

@ -2,15 +2,29 @@ pipeline {
agent any
stages {
stage('Dependencies') {
stage('dependencies') {
steps {
sh 'npm i'
}
}
stage('Test') {
steps {
echo 'Testing..'
sh 'npm run cy:run:web'
stage('cypress parallel tests') {
environment {
CYPRESS_RECORD_KEY = credentials('cypress-example-record-key')
CYPRESS_trashAssetsBeforeRuns = 'false'
}
parallel {
stage('machine 1') {
steps {
sh "npm run cy:ci"
}
}
stage('machine 2') {
steps {
sh "npm run cy:ci"
}
}
}
}
}

@ -6,7 +6,8 @@
"cy:open:mob": "cypress open --env device=mob",
"cy:open:web": "cypress open --env device=web",
"cy:run:mob": "cypress run --env device=mob",
"cy:run:web": "cypress run --env device=web"
"cy:run:web": "cypress run --env device=web",
"cy:ci": "cypress run --env device=web --record --parallel --config projectId=urshkd"
},
"devDependencies": {
"cypress": "^6.8.0",

Loading…
Cancel
Save