Setup Jenkins Dockerfile for unit tests
Some checks failed
Core Repos/Homepage/pipeline/head There was a failure building this commit

This commit is contained in:
Cameron Cordes
2020-04-20 19:25:06 -04:00
parent 432ab5ddb3
commit 4f87f6fb3f
6 changed files with 92 additions and 21 deletions

46
Jenkinsfile vendored
View File

@@ -1,20 +1,32 @@
pipeline {
agent { docker { image 'node:13.10-alpine' } }
stages {
stage('setup') {
steps {
sh 'npm install'
}
}
stage('build') {
steps {
sh 'node_modules/.bin/ng build --prod'
}
}
stage('lint') {
steps {
sh 'node_modules/.bin/ng lint'
}
}
agent {
dockerfile {
filename 'Dockerfile.jenkins'
dir '.'
args '-e CHROME_BIN=/bin/chromium -e NG_CLI_ANALYTICS="false"'
}
}
stages {
stage('setup') {
steps {
sh 'npm install'
}
}
stage('build') {
steps {
sh 'node_modules/.bin/ng build --prod'
}
}
stage('lint') {
steps {
sh 'node_modules/.bin/ng lint'
}
}
stage('test') {
steps {
sh 'node_modules/.bin/ng test --watch=false --progress=false --browsers=ChomeHeadlessCI'
}
}
}
}