Commit b67723c0 authored by Frank Kumro's avatar Frank Kumro

Try caching _build

parent 386e7949
Pipeline #51720684 failed with stages
in 3 minutes and 42 seconds
......@@ -13,9 +13,11 @@ stages:
prepare_firmware_deps:
stage: prepare_firmware_deps
cache:
key: "%CI_COMMIT_REF_SLUG%"
key: "%CI_COMMIT_REF_SLUG%-firmware"
paths:
- "$CI_PROJECT_DIR/fw/deps"
- "$CI_PROJECT_DIR/fw/_build"
script:
- cd /srv/ && mix local.hex --force
- mix local.rebar --force
......@@ -26,9 +28,10 @@ prepare_firmware_deps:
compile_with_warnings_as_errors:
stage: test_firmware
cache:
key: "%CI_COMMIT_REF_SLUG%"
key: "%CI_COMMIT_REF_SLUG%-firmware"
paths:
- "$CI_PROJECT_DIR/fw/deps"
- "$CI_PROJECT_DIR/fw/_build"
policy: pull
script:
- 'cd $CI_PROJECT_DIR/fw && mix compile --warnings-as-errors'
......@@ -36,9 +39,10 @@ compile_with_warnings_as_errors:
unit_testing:
stage: test_firmware
cache:
key: "%CI_COMMIT_REF_SLUG%"
key: "%CI_COMMIT_REF_SLUG%-firmware"
paths:
- "$CI_PROJECT_DIR/fw/deps"
- "$CI_PROJECT_DIR/fw/_build"
policy: pull
script:
- 'cd $CI_PROJECT_DIR/fw && mix test'
......@@ -46,9 +50,10 @@ unit_testing:
dialyzer:
stage: test_firmware
cache:
key: "%CI_COMMIT_REF_SLUG%"
key: "%CI_COMMIT_REF_SLUG%-firmware"
paths:
- "$CI_PROJECT_DIR/fw/deps"
- "$CI_PROJECT_DIR/fw/_build"
policy: pull
script:
- 'cd $CI_PROJECT_DIR/fw && mix dialyzer --format long --halt-exit-status'
......@@ -56,9 +61,10 @@ dialyzer:
credo:
stage: test_firmware
cache:
key: "%CI_COMMIT_REF_SLUG%"
key: "%CI_COMMIT_REF_SLUG%-firmware"
paths:
- "$CI_PROJECT_DIR/fw/deps"
- "$CI_PROJECT_DIR/fw/_build"
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