Skip to content
Permalink
Browse files

Update CI to build more combinations

  • Loading branch information...
fhunleth committed May 21, 2019
1 parent 38702f3 commit 89386ed57f65d0e324bb2e8d732f191a4b08d570
Showing with 48 additions and 13 deletions.
  1. +48 −13 .circleci/config.yml
@@ -1,11 +1,4 @@

defaults: &defaults
working_directory: ~/repo
docker:
- image: erlang:21.1
environment:
ELIXIR_VERSION: 1.8.1-otp-21
LC_ALL: C.UTF-8
version: 2

install_elixir: &install_elixir
run:
@@ -29,10 +22,16 @@ install_system_deps: &install_system_deps
apt update
apt install -y unzip
version: 2
defaults: &defaults
working_directory: ~/repo

jobs:
test_elixir_1_8_otp_21:
build_elixir_1_8_otp_22:
docker:
- image: erlang:22.0
environment:
ELIXIR_VERSION: 1.8.2-otp-22
LC_ALL: C.UTF-8
<<: *defaults
steps:
- checkout
@@ -43,20 +42,56 @@ jobs:
keys:
- v1-mix-cache-{{ checksum "mix.lock" }}
- run: mix deps.get
- run: mix format --check-formatted
- run: mix hex.build
- run: mix test
- run: mix format --check-formatted
- run: mix docs
- run: mix hex.build
- run: mix dialyzer --halt-exit-status
- save_cache:
key: v1-mix-cache-{{ checksum "mix.lock" }}
paths:
- _build
- deps

build_elixir_1_8_otp_21:
docker:
- image: erlang:21.3
environment:
ELIXIR_VERSION: 1.8.2-otp-21
LC_ALL: C.UTF-8
<<: *defaults
steps:
- checkout
- <<: *install_system_deps
- <<: *install_elixir
- <<: *install_hex_rebar
- run: mix deps.get
- run: mix compile
- run: mix test

build_elixir_1_7_otp_21:
docker:
- image: erlang:21.3
environment:
ELIXIR_VERSION: 1.7.4-otp-21
LC_ALL: C.UTF-8
<<: *defaults
steps:
- checkout
- <<: *install_system_deps
- <<: *install_elixir
- <<: *install_hex_rebar
- run: mix deps.get
- run: mix compile
- run: mix test

workflows:
version: 2
build_test:
jobs:
- test_elixir_1_8_otp_21:
- build_elixir_1_8_otp_22:
context: org-global
- build_elixir_1_8_otp_21:
context: org-global
- build_elixir_1_7_otp_21:
context: org-global

0 comments on commit 89386ed

Please sign in to comment.
You can’t perform that action at this time.