-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
35 lines (31 loc) · 1.04 KB
/
.gitlab-ci.yml
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
image: elixir:latest
variables:
MIX_ENV: test
before_script:
- echo "Elixir v${ELIXIR_VERSION/v/} (compiled with OTP $OTP_VERSION)"
- export PLT_FILENAME=elixir-${ELIXIR_VERSION/v/}_${OTP_VERSION}.plt
- export PLT_TESTNAME=dialyxir_erlang-${OTP_VERSION}_elixir-${ELIXIR_VERSION/v/}_deps-${MIX_ENV}.plt
- export PLT_LOCATION=_build/$MIX_ENV/$PLT_TESTNAME
- mix local.hex --force
- mix local.rebar --force
# Install dialyxir
- git clone https://github.com/asummers/erlex.git
- cd erlex
- mix deps.get
- mix do compile, archive.build
- mix archive.install --force
- cd ..
- git clone https://github.com/jeremyjh/dialyxir.git
- cd dialyxir
- mix deps.get
- MIX_ENV=prod mix do compile, archive.build
- MIX_ENV=prod mix archive.install --force
- cd ..
# Download and stage pre-built PLT
- mkdir -p _build/$MIX_ENV
- wget -O $PLT_LOCATION https://gitlab.com/jonnystorm/gitlab-elixir-plts/raw/master/$PLT_FILENAME
mix:
script:
- mix do deps.get, deps.compile
- mix test
- mix dialyzer --halt-exit-status