Skip to content

Commit

Permalink
feat(travis): add travis
Browse files Browse the repository at this point in the history
  • Loading branch information
itsachen committed Feb 6, 2018
1 parent e8924dc commit 5aa1e08
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 48 deletions.
43 changes: 0 additions & 43 deletions .circleci/config.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .dialyzer_ignore
@@ -0,0 +1,3 @@
lib/lob/intl_verification.ex:6: Function resource_url/1 will never be called
lib/lob/us_verification.ex:6: Function resource_url/1 will never be called
lib/lob/us_zip_lookup.ex:6: Function resource_url/1 will never be called
25 changes: 25 additions & 0 deletions .travis.yml
@@ -0,0 +1,25 @@
language: elixir

sudo: false

elixir:
- '1.4.5'
- '1.5.3'
- '1.6.1'

otp_release:
- '20.0'

env:
- MIX_ENV="test"

script:
- mix compile --warnings-as-errors
- mix coveralls.travis --max-cases 1
- mix credo
- mix dialyzer --halt-exit-status

cache:
directories:
- _build
- deps
3 changes: 3 additions & 0 deletions README.md
@@ -1,5 +1,8 @@
# lob_elixir (alpha)

[![Build Status](https://travis-ci.org/lob/lob-elixir.svg?branch=master)](https://travis-ci.org/lob/lob-elixir)
[![Coverage Status](https://coveralls.io/repos/github/lob/lob-elixir/badge.svg?branch=master)](https://coveralls.io/github/lob/lob-elixir?branch=master)

Elixir Library for [Lob API](https://lob.com/)

### This is an ALPHA library for the Lob API.
Expand Down
6 changes: 6 additions & 0 deletions coveralls.json
@@ -0,0 +1,6 @@
{
"coverage_options": {
"treat_no_relevant_lines_as_covered": true,
"minimum_coverage": 90
}
}
5 changes: 3 additions & 2 deletions mix.exs
Expand Up @@ -5,7 +5,7 @@ defmodule Lob.Mixfile do
[
app: :lob_elixir,
version: "0.2.0",
elixir: "~> 1.5",
elixir: "~> 1.4",
preferred_cli_env: ["coveralls.html": :test],
start_permanent: Mix.env == :prod,
test_coverage: [tool: ExCoveralls],
Expand All @@ -16,7 +16,8 @@ defmodule Lob.Mixfile do
:no_opaque,
:race_conditions,
:unknown
]
],
ignore_warnings: ".dialyzer_ignore"
]
]
end
Expand Down
8 changes: 5 additions & 3 deletions mix.lock
@@ -1,9 +1,10 @@
%{"bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], [], "hexpm"},
%{
"bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], [], "hexpm"},
"bypass": {:hex, :bypass, "0.8.1", "16d409e05530ece4a72fabcf021a3e5c7e15dcc77f911423196a0c551f2a15ca", [:mix], [{:cowboy, "~> 1.0", [hex: :cowboy, repo: "hexpm", optional: false]}, {:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm"},
"certifi": {:hex, :certifi, "2.0.0", "a0c0e475107135f76b8c1d5bc7efb33cd3815cb3cf3dea7aefdd174dabead064", [:rebar3], [], "hexpm"},
"cowboy": {:hex, :cowboy, "1.1.2", "61ac29ea970389a88eca5a65601460162d370a70018afe6f949a29dca91f3bb0", [:rebar3], [{:cowlib, "~> 1.0.2", [hex: :cowlib, repo: "hexpm", optional: false]}, {:ranch, "~> 1.3.2", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm"},
"cowlib": {:hex, :cowlib, "1.0.2", "9d769a1d062c9c3ac753096f868ca121e2730b9a377de23dec0f7e08b1df84ee", [:make], [], "hexpm"},
"credo": {:hex, :credo, "0.8.8", "990e7844a8d06ebacd88744a55853a83b74270b8a8461c55a4d0334b8e1736c9", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}], "hexpm"},
"credo": {:hex, :credo, "0.8.10", "261862bb7363247762e1063713bb85df2bbd84af8d8610d1272cd9c1943bba63", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}], "hexpm"},
"dialyxir": {:hex, :dialyxir, "0.5.1", "b331b091720fd93e878137add264bac4f644e1ddae07a70bf7062c7862c4b952", [:mix], [], "hexpm"},
"excoveralls": {:hex, :excoveralls, "0.7.5", "339e433e5d3bce09400dc8de7b9040741a409c93917849916c136a0f51fdc183", [:mix], [{:exjsx, ">= 3.0.0", [hex: :exjsx, repo: "hexpm", optional: false]}, {:hackney, ">= 0.12.0", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm"},
"exjsx": {:hex, :exjsx, "4.0.0", "60548841e0212df401e38e63c0078ec57b33e7ea49b032c796ccad8cde794b5c", [:mix], [{:jsx, "~> 2.8.0", [hex: :jsx, repo: "hexpm", optional: false]}], "hexpm"},
Expand All @@ -19,4 +20,5 @@
"ranch": {:hex, :ranch, "1.3.2", "e4965a144dc9fbe70e5c077c65e73c57165416a901bd02ea899cfd95aa890986", [:rebar3], [], "hexpm"},
"ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.1", "28a4d65b7f59893bc2c7de786dec1e1555bd742d336043fe644ae956c3497fbe", [:make, :rebar], [], "hexpm"},
"unicode_util_compat": {:hex, :unicode_util_compat, "0.3.1", "a1f612a7b512638634a603c8f401892afbf99b8ce93a45041f8aaca99cadb85e", [:rebar3], [], "hexpm"},
"uuid": {:hex, :uuid, "1.1.8", "e22fc04499de0de3ed1116b770c7737779f226ceefa0badb3592e64d5cfb4eb9", [], [], "hexpm"}}
"uuid": {:hex, :uuid, "1.1.8", "e22fc04499de0de3ed1116b770c7737779f226ceefa0badb3592e64d5cfb4eb9", [], [], "hexpm"},
}

0 comments on commit 5aa1e08

Please sign in to comment.