Skip to content

Commit 5d1bef6

Browse files
committed
Update CI config to latest elixir/erlang
1 parent fa3879c commit 5d1bef6

File tree

2 files changed

+22
-47
lines changed

2 files changed

+22
-47
lines changed

.circleci/config.yml

Lines changed: 22 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
version: 2
22

3-
install_elixir: &install_elixir
4-
run:
5-
name: Install Elixir
6-
command: |
7-
wget https://repo.hex.pm/builds/elixir/v$ELIXIR_VERSION.zip
8-
unzip -d /usr/local/elixir v$ELIXIR_VERSION.zip
9-
echo 'export PATH=/usr/local/elixir/bin:$PATH' >> $BASH_ENV
3+
defaults: &defaults
4+
working_directory: ~/repo
5+
environment:
6+
LC_ALL: C.UTF-8
107

118
install_hex_rebar: &install_hex_rebar
129
run:
@@ -19,101 +16,80 @@ install_system_deps: &install_system_deps
1916
run:
2017
name: Install system dependencies
2118
command: |
22-
apt update
23-
apt install -y unzip libmnl-dev libnl-genl-3-dev
24-
25-
defaults: &defaults
26-
working_directory: ~/repo
19+
apk add build-base linux-headers libmnl-dev libnl3-dev git
2720
2821
jobs:
29-
build_elixir_1_10_otp_23:
22+
build_elixir_1_11_otp_23:
3023
docker:
31-
- image: erlang:23.0.3
32-
environment:
33-
ELIXIR_VERSION: 1.10.4-otp-23
34-
LC_ALL: C.UTF-8
24+
- image: hexpm/elixir:1.11.4-erlang-23.3-alpine-3.13.2
3525
<<: *defaults
3626
steps:
3727
- checkout
38-
- <<: *install_system_deps
39-
- <<: *install_elixir
4028
- <<: *install_hex_rebar
29+
- <<: *install_system_deps
4130
- restore_cache:
4231
keys:
4332
- v1-mix-cache-{{ checksum "mix.lock" }}
4433
- run: mix deps.get
45-
- run: mix coveralls.circle
34+
- run: mix test
4635
- run: mix format --check-formatted
36+
- run: mix deps.unlock --check-unused
37+
- run: mix compile --warnings-as-errors
4738
- run: mix docs
4839
- run: mix hex.build
4940
- run: mix credo -a
5041
- run: mix dialyzer
42+
- run: mix coveralls.circle || true
5143
- save_cache:
5244
key: v1-mix-cache-{{ checksum "mix.lock" }}
5345
paths:
5446
- _build
5547
- deps
5648

57-
build_elixir_1_10_otp_22:
49+
build_elixir_1_10_otp_23:
5850
docker:
59-
- image: erlang:22.3.4.1
60-
environment:
61-
ELIXIR_VERSION: 1.10.3-otp-22
62-
LC_ALL: C.UTF-8
51+
- image: hexpm/elixir:1.10.4-erlang-23.3-alpine-3.13.2
6352
<<: *defaults
6453
steps:
6554
- checkout
66-
- <<: *install_system_deps
67-
- <<: *install_elixir
6855
- <<: *install_hex_rebar
56+
- <<: *install_system_deps
6957
- run: mix deps.get
7058
- run: mix compile
7159
- run: mix test
7260

7361
build_elixir_1_9_otp_22:
7462
docker:
75-
- image: erlang:22.2
76-
environment:
77-
ELIXIR_VERSION: 1.9.4-otp-22
78-
LC_ALL: C.UTF-8
63+
- image: hexpm/elixir:1.9.4-erlang-22.3.4.9-alpine-3.13.1
7964
<<: *defaults
8065
steps:
8166
- checkout
82-
- <<: *install_system_deps
83-
- <<: *install_elixir
8467
- <<: *install_hex_rebar
68+
- <<: *install_system_deps
8569
- run: mix deps.get
8670
- run: mix compile
8771
- run: mix test
8872

8973
build_elixir_1_8_otp_22:
9074
docker:
91-
- image: erlang:22.0
92-
environment:
93-
ELIXIR_VERSION: 1.8.2-otp-22
94-
LC_ALL: C.UTF-8
75+
- image: hexpm/elixir:1.8.2-erlang-22.3.4.9-alpine-3.13.1
9576
<<: *defaults
9677
steps:
9778
- checkout
98-
- <<: *install_system_deps
99-
- <<: *install_elixir
10079
- <<: *install_hex_rebar
80+
- <<: *install_system_deps
10181
- run: mix deps.get
10282
- run: mix compile
10383
- run: mix test
10484

10585
build_elixir_1_7_otp_21:
10686
docker:
107-
- image: erlang:21.3
108-
environment:
109-
ELIXIR_VERSION: 1.7.4-otp-21
110-
LC_ALL: C.UTF-8
87+
- image: hexpm/elixir:1.7.4-erlang-21.3.8.15-alpine-3.12.0
11188
<<: *defaults
11289
steps:
11390
- checkout
114-
- <<: *install_system_deps
115-
- <<: *install_elixir
11691
- <<: *install_hex_rebar
92+
- <<: *install_system_deps
11793
- run: mix deps.get
11894
- run: mix compile
11995
- run: mix test
@@ -122,8 +98,8 @@ workflows:
12298
version: 2
12399
build_test:
124100
jobs:
101+
- build_elixir_1_11_otp_23
125102
- build_elixir_1_10_otp_23
126-
- build_elixir_1_10_otp_22
127103
- build_elixir_1_9_otp_22
128104
- build_elixir_1_8_otp_22
129105
- build_elixir_1_7_otp_21

mix.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"certifi": {:hex, :certifi, "2.6.1", "dbab8e5e155a0763eea978c913ca280a6b544bfa115633fa20249c3d396d9493", [:rebar3], [], "hexpm", "524c97b4991b3849dd5c17a631223896272c6b0af446778ba4675a1dff53bb7e"},
44
"credo": {:hex, :credo, "1.5.5", "e8f422026f553bc3bebb81c8e8bf1932f498ca03339856c7fec63d3faac8424b", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2.8", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "dd8623ab7091956a855dc9f3062486add9c52d310dfd62748779c4315d8247de"},
55
"dialyxir": {:hex, :dialyxir, "1.1.0", "c5aab0d6e71e5522e77beff7ba9e08f8e02bad90dfbeffae60eaf0cb47e29488", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "07ea8e49c45f15264ebe6d5b93799d4dd56a44036cf42d0ad9c960bc266c0b9a"},
6-
"earmark": {:hex, :earmark, "1.4.4", "4821b8d05cda507189d51f2caeef370cf1e18ca5d7dfb7d31e9cafe6688106a4", [:mix], [], "hexpm", "1f93aba7340574847c0f609da787f0d79efcab51b044bb6e242cae5aca9d264d"},
76
"earmark_parser": {:hex, :earmark_parser, "1.4.12", "b245e875ec0a311a342320da0551da407d9d2b65d98f7a9597ae078615af3449", [:mix], [], "hexpm", "711e2cc4d64abb7d566d43f54b78f7dc129308a63bc103fbd88550d2174b3160"},
87
"elixir_make": {:hex, :elixir_make, "0.6.2", "7dffacd77dec4c37b39af867cedaabb0b59f6a871f89722c25b28fcd4bd70530", [:mix], [], "hexpm", "03e49eadda22526a7e5279d53321d1cced6552f344ba4e03e619063de75348d9"},
98
"erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"},

0 commit comments

Comments
 (0)