From 97cedf8d3df24bf731bba36c015727d6b9c306e9 Mon Sep 17 00:00:00 2001 From: SimonLab Date: Fri, 29 Nov 2019 08:15:29 +0000 Subject: [PATCH 1/5] add .travis.yml and remove github actions CI, #14 --- .github/workflows/elixir.yml | 21 --------------------- .travis.yml | 11 +++++++++++ 2 files changed, 11 insertions(+), 21 deletions(-) delete mode 100644 .github/workflows/elixir.yml create mode 100644 .travis.yml diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml deleted file mode 100644 index 372ff7d..0000000 --- a/.github/workflows/elixir.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Elixir CI - -on: push - -jobs: - build: - - runs-on: ubuntu-latest - - container: - image: elixir:1.9.1-slim - - steps: - - uses: actions/checkout@v1 - - name: Install Dependencies - run: | - mix local.rebar --force - mix local.hex --force - mix deps.get - - name: Run Tests - run: mix test diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0117ae5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: elixir +elixir: + - 1.9 +script: + - mix coveralls.json +after_success: + - bash <(curl -s https://codecov.io/bash) # send coverage report +cache: + directories: + - _build + - deps \ No newline at end of file From ea2477b599d45df82929eebfe7fc2426f0a51656 Mon Sep 17 00:00:00 2001 From: SimonLab Date: Fri, 29 Nov 2019 08:29:00 +0000 Subject: [PATCH 2/5] add coverall to mix.exs, #14 --- .travis.yml | 4 +++- mix.exs | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0117ae5..7ce9b40 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,10 @@ language: elixir elixir: - 1.9 +env: + MIX_ENV=test script: - - mix coveralls.json + - mix coveralls.travis after_success: - bash <(curl -s https://codecov.io/bash) # send coverage report cache: diff --git a/mix.exs b/mix.exs index 4b0519e..4f235d5 100644 --- a/mix.exs +++ b/mix.exs @@ -12,7 +12,8 @@ defmodule ElixirAuthGoogle.MixProject do start_permanent: Mix.env() == :prod, deps: deps(), description: @description, - package: package() + package: package(), + test_coverage: [tool: ExCoveralls] ] end From 8b8bf011a8259f6b402ae5fd9cebd5c91acdeb81 Mon Sep 17 00:00:00 2001 From: SimonLab Date: Fri, 29 Nov 2019 08:34:02 +0000 Subject: [PATCH 3/5] add coveralls.travis, #14 --- mix.exs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index 4f235d5..d8f0ca4 100644 --- a/mix.exs +++ b/mix.exs @@ -13,7 +13,14 @@ defmodule ElixirAuthGoogle.MixProject do deps: deps(), description: @description, package: package(), - test_coverage: [tool: ExCoveralls] + test_coverage: [tool: ExCoveralls], + preferred_cli_env: [ + coveralls: :test, + "coveralls.travis": :test, + "coveralls.json": :test, + "coveralls.html": :test + ] + ] end From 6ad6db985e32f093cc5d3d3ca0cc40bab46319b8 Mon Sep 17 00:00:00 2001 From: SimonLab Date: Fri, 29 Nov 2019 08:38:24 +0000 Subject: [PATCH 4/5] add excoveralls to dependencies, #14 --- mix.exs | 3 ++- mix.lock | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index d8f0ca4..1cb556d 100644 --- a/mix.exs +++ b/mix.exs @@ -35,7 +35,8 @@ defmodule ElixirAuthGoogle.MixProject do defp deps do [ {:httpoison, "~> 1.6"}, - {:poison, "~> 4.0"} + {:poison, "~> 4.0"}, + {:excoveralls, "~> 0.12.1", only: [:test, :dev]} ] end diff --git a/mix.lock b/mix.lock index f4b33ac..16448dd 100644 --- a/mix.lock +++ b/mix.lock @@ -1,8 +1,10 @@ %{ "certifi": {:hex, :certifi, "2.5.1", "867ce347f7c7d78563450a18a6a28a8090331e77fa02380b4a21962a65d36ee5", [:rebar3], [{:parse_trans, "~>3.3", [hex: :parse_trans, repo: "hexpm", optional: false]}], "hexpm"}, + "excoveralls": {:hex, :excoveralls, "0.12.1", "a553c59f6850d0aff3770e4729515762ba7c8e41eedde03208182a8dc9d0ce07", [:mix], [{:hackney, "~> 1.0", [hex: :hackney, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm"}, "hackney": {:hex, :hackney, "1.15.2", "07e33c794f8f8964ee86cebec1a8ed88db5070e52e904b8f12209773c1036085", [:rebar3], [{:certifi, "2.5.1", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "6.0.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "1.0.1", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~>1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "1.1.5", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}], "hexpm"}, "httpoison": {:hex, :httpoison, "1.6.2", "ace7c8d3a361cebccbed19c283c349b3d26991eff73a1eaaa8abae2e3c8089b6", [:mix], [{:hackney, "~> 1.15 and >= 1.15.2", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm"}, "idna": {:hex, :idna, "6.0.0", "689c46cbcdf3524c44d5f3dde8001f364cd7608a99556d8fbd8239a5798d4c10", [:rebar3], [{:unicode_util_compat, "0.4.1", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm"}, + "jason": {:hex, :jason, "1.1.2", "b03dedea67a99223a2eaf9f1264ce37154564de899fd3d8b9a21b1a6fd64afe7", [:mix], [{:decimal, "~> 1.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm"}, "metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm"}, "mimerl": {:hex, :mimerl, "1.2.0", "67e2d3f571088d5cfd3e550c383094b47159f3eee8ffa08e64106cdf5e981be3", [:rebar3], [], "hexpm"}, "parse_trans": {:hex, :parse_trans, "3.3.0", "09765507a3c7590a784615cfd421d101aec25098d50b89d7aa1d66646bc571c1", [:rebar3], [], "hexpm"}, From 06393e8899a6bd92d96a8326bc5ab011dde08583 Mon Sep 17 00:00:00 2001 From: SimonLab Date: Fri, 29 Nov 2019 08:44:26 +0000 Subject: [PATCH 5/5] try using json instead of travis, #14 --- .travis.yml | 2 +- mix.exs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7ce9b40..c402775 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ elixir: env: MIX_ENV=test script: - - mix coveralls.travis + - mix coveralls.json after_success: - bash <(curl -s https://codecov.io/bash) # send coverage report cache: diff --git a/mix.exs b/mix.exs index 1cb556d..8296252 100644 --- a/mix.exs +++ b/mix.exs @@ -16,7 +16,6 @@ defmodule ElixirAuthGoogle.MixProject do test_coverage: [tool: ExCoveralls], preferred_cli_env: [ coveralls: :test, - "coveralls.travis": :test, "coveralls.json": :test, "coveralls.html": :test ]