Merge branch 'develop' of https://git.foxiepa.ws/Otherkin.Club/pleroma into develop
commit
fe3b30519e
|
@ -0,0 +1,46 @@
|
|||
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
|
||||
mix coveralls --trace --preload-modules'''
|
||||
}
|
||||
}
|
||||
stage('Analysis') {
|
||||
parallel {
|
||||
stage('Credo') {
|
||||
steps {
|
||||
sh 'mix credo --strict --only=warnings,todo,fixme,consistency,readability'
|
||||
}
|
||||
}
|
||||
stage('Lint') {
|
||||
steps {
|
||||
sh 'mix format --check-formatted'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Save') {
|
||||
steps {
|
||||
junit '_build/junit.xml'
|
||||
}
|
||||
}
|
||||
}
|
||||
environment {
|
||||
MIX_ENV = 'test'
|
||||
}
|
||||
}
|
|
@ -1,5 +1,11 @@
|
|||
use Mix.Config
|
||||
|
||||
config :junit_formatter,
|
||||
report_file: "junit.xml",
|
||||
report_dir: "_build/",
|
||||
print_report_file: true,
|
||||
prepend_project_name?: true
|
||||
|
||||
# We don't run a server during test. If one is required,
|
||||
# you can enable the server option below.
|
||||
config :pleroma, Pleroma.Web.Endpoint,
|
||||
|
|
1
mix.exs
1
mix.exs
|
@ -149,6 +149,7 @@ defmodule Pleroma.Mixfile do
|
|||
{:benchee, "~> 1.0"},
|
||||
{:esshd, "~> 0.1.0", runtime: Application.get_env(:esshd, :enabled, false)},
|
||||
{:ex_rated, "~> 1.3"},
|
||||
{:junit_formatter, "~> 3.0", only: [:test]},
|
||||
{:plug_static_index_html, "~> 1.0.0"},
|
||||
{:excoveralls, "~> 0.11.1", only: :test},
|
||||
{:mox, "~> 0.5", only: :test}
|
||||
|
|
Reference in New Issue