Added Dockerfile

This commit is contained in:
Dawid Majsnerowski 2019-11-19 18:06:44 +01:00
parent f24d824c2c
commit a4de64ee15
2 changed files with 5 additions and 3 deletions

3
Dockerfile Normal file
View 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
View File

@ -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"
} }
} }