Commit bf97047b authored by kaniini's avatar kaniini

enable CI

parent 5598563e
Pipeline #11923 failed with stage
in 1 minute and 29 seconds
image: elixir:1.7
variables:
MIX_ENV: test
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- deps
- _build
stages:
- test
- publish
before_script:
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- mix compile --force
lint:
stage: test
script:
- mix format --check-formatted
unit-testing:
stage: test
coverage: '/(\d+\.\d+\%) \| Total/'
script:
- mix test --trace --preload-modules --cover
analysis:
stage: test
script:
- mix credo --strict --only=warnings,todo,fixme,consistency,readability
  • You might want to remove the --only=warnings,todo,fixme,consistency,readability and maybe put a real credo configuration.

    Pleroma has this line because all the credo fixes against it's config aren't done yet.

Please register or sign in to reply
......@@ -21,7 +21,10 @@ defmodule FastSanitize.MixProject do
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:myhtmlex, "~> 0.2"}
{:myhtmlex, "~> 0.2"},
{:credo, "~> 1.0.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:dialyxir, "~> 1.0.0-rc.5", only: [:dev], runtime: false}
]
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment