Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Commit

Permalink
V1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorRigby committed Aug 5, 2018
1 parent 4982c99 commit 7e58fc0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 28 deletions.
39 changes: 11 additions & 28 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,26 @@
version: 2
version: 2.0
jobs:
build:
docker:
- image: circleci/elixir:1.6.6
- image: circleci/elixir:1.6.6-otp-21
environment:
MIX_ENV: test
steps:
- checkout
- restore_cache:
keys:
- v4-dependency-cache-{{ checksum "mix.lock" }}
- v4-dependency-cache
- v2-dependency-cache-{{ checksum "mix.lock" }}
- run: mix local.hex --force
- run: mix local.rebar --force
- run: mix deps.get
- run: mix deps.compile --warnings-as-errors
- run: mix deps.compile
- run: mix compile
- run:
command: mix compile --warnings-as-errors
environment:
MIX_ENV: test
- restore_cache:
keys:
- v4-plt-cache-{{ checksum "mix.lock" }}
- v4-plt-cache
- run: mix dialyzer --plt
- run: mix dialyzer --halt-exit-status
- run: mix credo --strict --ignore linelength -a
- run:
command: mix coveralls.circle --include bench
environment:
MIX_ENV: test
- save_cache:
key: v4-plt-cache-{{ checksum "mix.lock" }}
paths:
- _build
- deps
- ~/.mix
# not passing yet
# - run: mix credo --strict
- run: mix coveralls.circle
- run: mix inch.report
- save_cache:
key: v4-dependency-cache-{{ checksum "mix.lock" }}
key: v2-dependency-cache-{{ checksum "mix.lock" }}
paths:
- _build
- deps
- ~/.mix
10 changes: 10 additions & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ defmodule Sqlite.MixProject do
compilers: [:elixir_make] ++ Mix.compilers(),
make_clean: ["clean"],
make_env: make_env(),
package: package(),
description: "Elixir NIF for Sqlite3.",
plt_add_deps: :apps_direct,
plt_add_apps: [],
dialyzer: [flags: [:unmatched_returns, :race_conditions, :no_unused]],
Expand Down Expand Up @@ -54,4 +56,12 @@ defmodule Sqlite.MixProject do
{:inch_ex, "~> 1.0", only: :test},
]
end

defp package do
[maintainers: ["Connor Rigby"],
licenses: ["Apache2"],
links: %{
github: "https://github.com/Sqlite-Ecto/elixir_sqlite",
docs: "http://hexdocs.pm/sqlite"}]
end
end

0 comments on commit 7e58fc0

Please sign in to comment.