Commit e5adf108 authored by Frank Kumro's avatar Frank Kumro

Set HEX and MIX home ENV vars

parent 7ccc5c5e
Pipeline #51748098 passed with stages
in 19 minutes and 22 seconds
......@@ -3,6 +3,8 @@ image: elixir:1.8
variables:
MIX_ENV: "test"
MIX_TARGET: "host"
HEX_HOME: "$CI_PROJECT_DIR/.hex"
MIX_HOME: "$CI_PROJECT_DIR/.mix"
stages:
- prepare_firmware_deps
......@@ -17,8 +19,8 @@ prepare_firmware_deps:
paths:
- "$CI_PROJECT_DIR/fw/deps/"
- "$CI_PROJECT_DIR/fw/_build/"
- "/root/.mix/"
- "/root/.hex/"
- "$CI_PROJECT_DIR/.hex/"
- "$CI_PROJECT_DIR/.mix/"
script:
- cd /srv/ && mix local.hex --force
......@@ -34,8 +36,8 @@ compile_with_warnings_as_errors:
paths:
- "$CI_PROJECT_DIR/fw/deps/"
- "$CI_PROJECT_DIR/fw/_build/"
- "/root/.mix/"
- "/root/.hex/"
- "$CI_PROJECT_DIR/.hex/"
- "$CI_PROJECT_DIR/.mix/"
policy: pull
script:
- 'cd $CI_PROJECT_DIR/fw && mix compile --warnings-as-errors'
......@@ -47,8 +49,8 @@ unit_testing:
paths:
- "$CI_PROJECT_DIR/fw/deps/"
- "$CI_PROJECT_DIR/fw/_build/"
- "/root/.mix/"
- "/root/.hex/"
- "$CI_PROJECT_DIR/.hex/"
- "$CI_PROJECT_DIR/.mix/"
policy: pull
script:
- 'cd $CI_PROJECT_DIR/fw && mix test'
......@@ -60,8 +62,8 @@ dialyzer:
paths:
- "$CI_PROJECT_DIR/fw/deps/"
- "$CI_PROJECT_DIR/fw/_build/"
- "/root/.mix/"
- "/root/.hex/"
- "$CI_PROJECT_DIR/.hex/"
- "$CI_PROJECT_DIR/.mix/"
policy: pull
script:
- 'cd $CI_PROJECT_DIR/fw && mix dialyzer --format long --halt-exit-status'
......@@ -73,8 +75,8 @@ credo:
paths:
- "$CI_PROJECT_DIR/fw/deps/"
- "$CI_PROJECT_DIR/fw/_build/"
- "/root/.mix/"
- "/root/.hex/"
- "$CI_PROJECT_DIR/.hex/"
- "$CI_PROJECT_DIR/.mix/"
policy: pull
script:
- 'cd $CI_PROJECT_DIR/fw && mix credo'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment