2019-11-19 17:19:25 +01:00
|
|
|
pipeline {
|
2019-11-19 17:48:01 +01:00
|
|
|
agent {docker { image 'circleci/node:10' }}
|
|
|
|
environment {
|
|
|
|
HOME = '.'
|
2019-11-19 17:31:57 +01:00
|
|
|
}
|
2019-11-19 17:19:25 +01:00
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
2019-11-19 18:03:40 +01:00
|
|
|
sh "apk update && apk upgrade"
|
2019-11-19 17:40:36 +01:00
|
|
|
sh "npm install"
|
2019-11-19 17:19:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
2019-11-19 17:51:46 +01:00
|
|
|
sh "npm install webdriverio"
|
2019-11-19 17:40:36 +01:00
|
|
|
sh "npm test"
|
2019-11-19 17:19:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
|
|
|
steps {
|
|
|
|
echo 'Deploying....'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|