Skip to content

Commit

Permalink
fix-warnings-elixir1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
gloopsoft committed Oct 14, 2020
1 parent 454bf49 commit 2c858f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 29 deletions.
31 changes: 3 additions & 28 deletions lib/excoveralls.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,71 +57,46 @@ defmodule ExCoveralls do
end

@doc """
Logic for posting from travis-ci server
Logic for posting
"""
def analyze(stats, type, options)

def analyze(stats, @type_travis, options) do
Travis.execute(stats, options)
end

@doc """
Logic for posting from github action
"""
def analyze(stats, @type_github, options) do
Github.execute(stats, options)
end

@doc """
Logic for posting from circle-ci server
"""
def analyze(stats, @type_circle, options) do
Circle.execute(stats, options)
end

@doc """
Logic for posting from semaphore-ci server
"""
def analyze(stats, @type_semaphore, options) do
Semaphore.execute(stats, options)
end

@doc """
Logic for posting from drone-ci server
"""
def analyze(stats, @type_drone, options) do
Drone.execute(stats, options)
end

@doc """
Logic for local stats display, without posting server
"""
def analyze(stats, @type_local, options) do
Local.execute(stats, options)
end

@doc """
Logic for html stats display, without posting server
"""
def analyze(stats, @type_html, options) do
Html.execute(stats, options)
end

@doc """
Logic for JSON output, without posting server
"""
def analyze(stats, @type_json, options) do
Json.execute(stats, options)
end

@doc """
Logic for XML output, without posting server
"""
def analyze(stats, @type_xml, options) do
Xml.execute(stats, options)
end

@doc """
Logic for posting from general CI server with token.
"""
def analyze(stats, @type_post, options) do
Post.execute(stats, options)
end
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule ExCoveralls.Mixfile do

# Configuration for the OTP application
def application do
[]
[extra_applications: [:eex, :tools]]
end

# Specifies which paths to compile per environment.
Expand Down

0 comments on commit 2c858f6

Please sign in to comment.