Skip to content

Commit ae870ca

Browse files
author
m.malkin
committed
travis.ci added
1 parent be09a55 commit ae870ca

File tree

5 files changed

+37
-2
lines changed

5 files changed

+37
-2
lines changed

.travis.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: elixir
2+
matrix:
3+
# https://github.com/elixir-lang/elixir/blob/master/lib/elixir/pages/Compatibility%20and%20Deprecations.md
4+
5+
- elixir: 1.1
6+
otp_release: 22.0
7+
8+
env:
9+
- MIX_ENV=test COVERALLS_ELIXIR_VERSION=1.1 COVERALLS_OTP_RELEASE=22.0
10+
script:
11+
- make ci
12+
after_script:
13+
- ./coveralls.sh

Makefile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
PHONY: ci
2+
3+
ci: export MIX_ENV=test
4+
ci:
5+
mix clean && mix compile --warnings-as-errors
6+
mix format --check-formatted --dry-run
7+
mix test
8+
mix dialyzer
9+
mix cover
10+
# TODO increase coverage and uncomment
11+
# mix cover.lint

coveralls.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -x
4+
5+
echo "Elixir: $TRAVIS_ELIXIR_VERSION Erlang: $TRAVIS_OTP_RELEASE"
6+
7+
if [ "$COVERALLS_ELIXIR_VERSION" == "$TRAVIS_ELIXIR_VERSION" ] && [ "$COVERALLS_OTP_RELEASE" == "$TRAVIS_OTP_RELEASE" ]; then
8+
echo "Posting coveralls"
9+
mix deps.get --only docs
10+
mix coveralls.travis
11+
fi

mix.exs

+1-2
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,13 @@ defmodule CleanMixer.MixProject do
5252
{:optimus, "~> 0.1.6"},
5353
{:dialyxir, "~> 1.0.0-rc.7", only: [:dev, :test], runtime: false},
5454
{:excoveralls, "~> 0.11", only: :test},
55+
{:excoveralls_linter, "~> 0.0.1", only: :test},
5556
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
5657
]
5758
end
5859

5960
defp aliases do
6061
[
61-
lint: ["dialyzer"],
62-
check: ["test", "lint"],
6362
cover: ["coveralls --sort cov:desc"],
6463
"cover.lint": ["coveralls.lint --missed-lines-threshold=2 --required-file-coverage=0.9"],
6564
"cover.html": ["coveralls.html"],

mix.lock

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"erlex": {:hex, :erlex, "0.2.5", "e51132f2f472e13d606d808f0574508eeea2030d487fc002b46ad97e738b0510", [:mix], [], "hexpm", "756d3e19b056339af674b715fdd752c5dac468cf9d0e2d1a03abf4574e99fbf8"},
77
"ex_doc": {:hex, :ex_doc, "0.21.2", "caca5bc28ed7b3bdc0b662f8afe2bee1eedb5c3cf7b322feeeb7c6ebbde089d6", [:mix], [{:earmark, "~> 1.3.3 or ~> 1.4", [hex: :earmark, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm", "f1155337ae17ff7a1255217b4c1ceefcd1860b7ceb1a1874031e7a861b052e39"},
88
"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", "5c1f717066a299b1b732249e736c5da96bb4120d1e55dc2e6f442d251e18a812"},
9+
"excoveralls_linter": {:hex, :excoveralls_linter, "0.0.2", "42e28138b2a6664088f796274f8e05192b1f3c5a8bd3bd9505f9446c6273e7e2", [:mix], [{:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: false]}, {:optimus, "~> 0.1.9", [hex: :optimus, repo: "hexpm", optional: false]}], "hexpm", "8014cd02926014cc7d2c2a549707225a6a36a5adfd90f16261592d681aec32af"},
910
"graphvix": {:git, "https://github.com/fenollp/erlang-dot.git", "8f2e22e4aa425220e928d669fa6a08d3df1fd4a6", []},
1011
"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", "e0100f8ef7d1124222c11ad362c857d3df7cb5f4204054f9f0f4a728666591fc"},
1112
"idna": {:hex, :idna, "6.0.0", "689c46cbcdf3524c44d5f3dde8001f364cd7608a99556d8fbd8239a5798d4c10", [:rebar3], [{:unicode_util_compat, "0.4.1", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "4bdd305eb64e18b0273864920695cb18d7a2021f31a11b9c5fbcd9a253f936e2"},

0 commit comments

Comments
 (0)