-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
47 lines (42 loc) · 1.26 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
35
36
37
38
39
40
41
42
43
44
45
46
image: elixir:latest
variables:
MIX_ENV: test
ERL_COMPILER_OPTIONS: bin_opt_info
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 clean
- mix do deps.get, deps.compile
- mix compile --force --warnings-as-errors
- mix test --include integrated --include expensive
- mix dialyzer --halt-exit-status
pages:
script:
- ls
artifacts:
paths:
- .
only:
- gh-pages