Merge branch 'add-jenkinsfile' of s416094/CHAL into master
This commit is contained in:
commit
126ce61670
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user