Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Commit 3ec4346

Browse files
committed
Add CI and make CI work
1 parent 2dc2f06 commit 3ec4346

7 files changed

Lines changed: 89 additions & 10 deletions

File tree

.circleci/config.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
version: 2
2+
3+
defaults: &defaults
4+
working_directory: ~/repo
5+
environment:
6+
LC_ALL: C.UTF-8
7+
8+
install_hex_rebar: &install_hex_rebar
9+
run:
10+
name: Install hex and rebar
11+
command: |
12+
mix local.hex --force
13+
mix local.rebar --force
14+
install_system_deps: &install_system_deps
15+
run:
16+
name: Install system dependencies
17+
command: |
18+
apk add build-base linux-headers
19+
jobs:
20+
build_elixir_1_11_otp_23:
21+
docker:
22+
- image: hexpm/elixir:1.11.3-erlang-23.2.2-alpine-3.12.1
23+
<<: *defaults
24+
steps:
25+
- checkout
26+
- <<: *install_hex_rebar
27+
- <<: *install_system_deps
28+
- restore_cache:
29+
keys:
30+
- v1-mix-cache-{{ checksum "mix.lock" }}
31+
- run: mix deps.get
32+
- run: mix compile --warnings-as-errors
33+
- run: mix test
34+
- run: mix format --check-formatted
35+
- run: mix deps.unlock --check-unused
36+
- run: mix docs
37+
- run: mix hex.build
38+
- run: mix dialyzer
39+
- save_cache:
40+
key: v1-mix-cache-{{ checksum "mix.lock" }}
41+
paths:
42+
- _build
43+
- deps
44+
45+
build_elixir_1_10_otp_23:
46+
docker:
47+
- image: hexpm/elixir:1.10.4-erlang-23.1.2-alpine-3.12.1
48+
<<: *defaults
49+
steps:
50+
- checkout
51+
- <<: *install_hex_rebar
52+
- <<: *install_system_deps
53+
- run: mix deps.get
54+
- run: mix compile
55+
- run: mix test
56+
57+
build_elixir_1_9_otp_22:
58+
docker:
59+
- image: hexpm/elixir:1.9.4-erlang-22.3.4.9-alpine-3.12.0
60+
<<: *defaults
61+
steps:
62+
- checkout
63+
- <<: *install_hex_rebar
64+
- <<: *install_system_deps
65+
- run: mix deps.get
66+
- run: mix compile
67+
- run: mix test
68+
69+
workflows:
70+
version: 2
71+
build_test:
72+
jobs:
73+
- build_elixir_1_11_otp_23
74+
- build_elixir_1_10_otp_23
75+
- build_elixir_1_9_otp_22
76+
77+

.circleci/md-style.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
all
2+
exclude_rule 'MD026'
3+
rule 'MD029', :style => 'ordered'

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# circuits_cdev
22

3+
[![CircleCI](https://circleci.com/gh/elixir-circuits/circuits_cdev.svg?style=svg)](https://circleci.com/gh/elixir-circuits/circuits_cdev)
4+
5+
36
Character device GPIO library for Elixir.
47

58
WARNING: This is under active development and not all features or bugs are worked

lib/chip/events/event.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
defmodule Circuits.GPIO.Chip.Events.Event do
22
@moduledoc false
33

4+
alias Circuits.GPIO.Chip
5+
46
@type t() :: %__MODULE__{
57
handle: reference(),
68
listener: pid(),

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ defmodule Circuits.Cdev.MixProject do
5757
defp deps do
5858
[
5959
{:elixir_make, "~> 0.6", runtime: false},
60-
{:ex_doc, "~> 0.23.0", only: :docs, runtime: false},
60+
{:ex_doc, "~> 0.24.0", only: :docs, runtime: false},
6161
{:dialyxir, "~> 1.1.0", only: :dev, runtime: false}
6262
]
6363
end

mix.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
%{
22
"dialyxir": {:hex, :dialyxir, "1.1.0", "c5aab0d6e71e5522e77beff7ba9e08f8e02bad90dfbeffae60eaf0cb47e29488", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "07ea8e49c45f15264ebe6d5b93799d4dd56a44036cf42d0ad9c960bc266c0b9a"},
3-
"earmark": {:hex, :earmark, "1.4.3", "364ca2e9710f6bff494117dbbd53880d84bebb692dafc3a78eb50aa3183f2bfd", [:mix], [], "hexpm", "8cf8a291ebf1c7b9539e3cddb19e9cef066c2441b1640f13c34c1d3cfc825fec"},
43
"earmark_parser": {:hex, :earmark_parser, "1.4.12", "b245e875ec0a311a342320da0551da407d9d2b65d98f7a9597ae078615af3449", [:mix], [], "hexpm", "711e2cc4d64abb7d566d43f54b78f7dc129308a63bc103fbd88550d2174b3160"},
54
"elixir_make": {:hex, :elixir_make, "0.6.0", "38349f3e29aff4864352084fc736fa7fa0f2995a819a737554f7ebd28b85aaab", [:mix], [], "hexpm", "d522695b93b7f0b4c0fcb2dfe73a6b905b1c301226a5a55cb42e5b14d509e050"},
65
"erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"},
7-
"ex_doc": {:hex, :ex_doc, "0.23.0", "a069bc9b0bf8efe323ecde8c0d62afc13d308b1fa3d228b65bca5cf8703a529d", [:mix], [{:earmark_parser, "~> 1.4.0", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm", "f5e2c4702468b2fd11b10d39416ddadd2fcdd173ba2a0285ebd92c39827a5a16"},
6+
"ex_doc": {:hex, :ex_doc, "0.24.0", "2df14354835afaabdf87cb2971ea9485d8a36ff590e4b6c250b4f60c8fdf9143", [:mix], [{:earmark_parser, "~> 1.4.0", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "a0f4bcff21ceebea48414e49885d2a3e542200f76a2facf3f8faa54935eeb721"},
87
"makeup": {:hex, :makeup, "1.0.5", "d5a830bc42c9800ce07dd97fa94669dfb93d3bf5fcf6ea7a0c67b2e0e4a7f26c", [:mix], [{:nimble_parsec, "~> 0.5 or ~> 1.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "cfa158c02d3f5c0c665d0af11512fed3fba0144cf1aadee0f2ce17747fba2ca9"},
98
"makeup_elixir": {:hex, :makeup_elixir, "0.15.1", "b5888c880d17d1cc3e598f05cdb5b5a91b7b17ac4eaf5f297cb697663a1094dd", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.1", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "db68c173234b07ab2a07f645a5acdc117b9f99d69ebf521821d89690ae6c6ec8"},
9+
"makeup_erlang": {:hex, :makeup_erlang, "0.1.1", "3fcb7f09eb9d98dc4d208f49cc955a34218fc41ff6b84df7c75b3e6e533cc65f", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "174d0809e98a4ef0b3309256cbf97101c6ec01c4ab0b23e926a9e17df2077cbb"},
1010
"nimble_parsec": {:hex, :nimble_parsec, "1.1.0", "3a6fca1550363552e54c216debb6a9e95bd8d32348938e13de5eda962c0d7f89", [:mix], [], "hexpm", "08eb32d66b706e913ff748f11694b17981c0b04a33ef470e33e11b3d3ac8f54b"},
1111
}

test/circuits_cdev_test.exs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
1-
defmodule CircuitsCdevTest do
2-
use ExUnit.Case
3-
doctest CircuitsCdev
4-
5-
test "greets the world" do
6-
assert CircuitsCdev.hello() == :world
7-
end
1+
defmodule Circuits.GPIO.Chip.Test do
82
end

0 commit comments

Comments
 (0)