This repository has been archived on 2020-02-06. You can view files and clone it, but cannot push or open issues/pull-requests.
2019-07-17 10:39:21 -04:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage('Pre-Build') {
|
|
|
|
steps {
|
|
|
|
sh '''mix local.hex --force
|
|
|
|
mix local.rebar --force'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
sh '''mix deps.get
|
|
|
|
mix compile'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Unit') {
|
|
|
|
steps {
|
|
|
|
sh '''mix ecto.create
|
|
|
|
mix ecto.migrate
|
2019-07-17 12:26:30 -04:00
|
|
|
mix coveralls.html --trace --preload-modules'''
|
|
|
|
junit '_build/pleroma-junit.xml'
|
|
|
|
archiveArtifacts(artifacts: 'cover/excoveralls.html', allowEmptyArchive: true)
|
2019-07-17 10:39:21 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Analysis') {
|
|
|
|
parallel {
|
|
|
|
stage('Credo') {
|
|
|
|
steps {
|
|
|
|
sh 'mix credo --strict --only=warnings,todo,fixme,consistency,readability'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Lint') {
|
|
|
|
steps {
|
|
|
|
sh 'mix format --check-formatted'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-07-17 10:45:07 -04:00
|
|
|
environment {
|
|
|
|
MIX_ENV = 'test'
|
|
|
|
}
|
2019-07-17 10:39:21 -04:00
|
|
|
}
|