Merge branch 'add-jenkinsfile' of s416094/CHAL into master

This commit is contained in:
Jakub Kowalczyk 2019-11-22 09:04:20 +00:00 committed by Gogs
commit 126ce61670

22
Jenkinsfile vendored
View File

@ -1,21 +1,33 @@
pipeline {
agent any
agent {
docker { image 'elixir:1.9.4' }
}
stages {
stage('Build') {
steps {
echo 'Building..'
sh "elixir -v"
dir("challange_accepted") {
sh "mix compile && MIX_ENV=test mix compile"
}
}
}
stage('Test') {
steps {
echo 'Testing..'
dir("challange_accepted") {
sh "mix test"
}
}
}
stage('Deploy') {
stage('Build release') {
steps {
echo 'Deploying....'
dir("challange_accepted") {
sh "mix release"
}
}
}
}
}