forked from dashbitco/broadway_kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Earthfile
36 lines (27 loc) · 888 Bytes
/
Earthfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
VERSION 0.7
all:
BUILD \
--build-arg ELIXIR_BASE=1.11.3-erlang-23.2.5-alpine-3.16.0 \
--build-arg ELIXIR_BASE=1.14.3-erlang-25.3-alpine-3.17.2 \
+integration-test
setup-base:
ARG ELIXIR_BASE=1.13.4-erlang-24.3.4.2-alpine-3.16.0
FROM hexpm/elixir:$ELIXIR_BASE
RUN apk add --no-progress --update build-base
RUN mix local.rebar --force
RUN mix local.hex --force
ENV ELIXIR_ASSERT_TIMEOUT=10000
WORKDIR /src/broadway_kafka
integration-test-base:
FROM +setup-base
RUN apk add --no-progress --update docker docker-compose git
integration-test:
FROM +integration-test-base
COPY mix.exs mix.lock .formatter.exs docker-compose.yml ./
RUN mix deps.get
COPY --dir lib test ./
# then run the tests
WITH DOCKER --compose docker-compose.yml
RUN set -e; \
mix test --only integration
END