Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F116248
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..a0872e8
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,36 @@
+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
diff --git a/mix.exs b/mix.exs
index d66a5dc..19c101d 100644
--- a/mix.exs
+++ b/mix.exs
@@ -1,27 +1,30 @@
defmodule FastSanitize.MixProject do
use Mix.Project
def project do
[
app: :fast_sanitize,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# 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
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Nov 30, 8:38 PM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41547
Default Alt Text
(1 KB)
Attached To
Mode
R15 fast_sanitize
Attached
Detach File
Event Timeline
Log In to Comment