Add Jenkinsfile for build testing.

devel
Rachel Fae Fox (foxiepaws) 2019-07-19 02:45:48 -04:00
parent 8430283a33
commit 9bff1e791d
1 changed files with 42 additions and 0 deletions

42
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,42 @@
pipeline {
agent any
stages {
stage('Deps') {
steps {
sh '''mix deps.get
mix deps.compile'''
}
}
stage('Build') {
steps {
sh 'mix compile'
}
}
stage('Database') {
steps {
sh '''mix ecto.create
mix ecto.migrate'''
}
}
stage('Test') {
steps {
sh '''mix test --cover
'''
}
}
stage('Pre-Deploy') {
parallel {
stage('Webpack') {
steps {
sh 'mix phx.digest'
}
}
stage('JUnit') {
steps {
junit 'reports/*.xml'
}
}
}
}
}
}