Added Dockerfile
This commit is contained in:
parent
f24d824c2c
commit
a4de64ee15
3
Dockerfile
Normal file
3
Dockerfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM circleci/node:10
|
||||||
|
RUN apt-get update && apt-get upgrade
|
||||||
|
run apt-get install libnss3-dev
|
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -1,5 +1,5 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent {docker { image 'circleci/node:10' }}
|
agent {dockerfile true}
|
||||||
environment {
|
environment {
|
||||||
HOME = '.'
|
HOME = '.'
|
||||||
}
|
}
|
||||||
@ -7,13 +7,12 @@
|
|||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh "apk update && apk upgrade"
|
|
||||||
sh "npm install"
|
sh "npm install"
|
||||||
|
sh "npm install webdriverio"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
steps {
|
steps {
|
||||||
sh "npm install webdriverio"
|
|
||||||
sh "npm test"
|
sh "npm test"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user