Commit 386e7949 authored by Frank Kumro's avatar Frank Kumro

Attempt to cache deps for ci stages

parent 9dcc057f
Pipeline #51551601 failed with stages
in 3 minutes and 7 seconds
......@@ -5,35 +5,61 @@ variables:
MIX_TARGET: "host"
stages:
- prepare_firmware_deps
- test_firmware
- test_phoenix
- deploy
before_script:
# - apt-get -qq update && apt-get install -y ssh-askpass squashfs-tools git libssl-dev libncurses5-dev bc m4 make unzip cmake python # erlang-dev build-essential
- cd /srv/ && mix local.hex --force
- mix local.rebar --force
- mix archive.install --force hex nerves_bootstrap
- mix local.nerves --force
- 'cd $CI_PROJECT_DIR/fw && mix deps.get --only test'
prepare_firmware_deps:
stage: prepare_firmware_deps
cache:
key: "%CI_COMMIT_REF_SLUG%"
paths:
- "$CI_PROJECT_DIR/fw/deps"
script:
- cd /srv/ && mix local.hex --force
- mix local.rebar --force
- mix archive.install --force hex nerves_bootstrap
- mix local.nerves --force
- 'cd $CI_PROJECT_DIR/fw && mix deps.get --only test'
compile_with_warnings_as_errors:
stage: test_firmware
cache:
key: "%CI_COMMIT_REF_SLUG%"
paths:
- "$CI_PROJECT_DIR/fw/deps"
policy: pull
script:
- 'cd $CI_PROJECT_DIR/fw && mix compile --warnings-as-errors'
unit_testing:
stage: test_firmware
cache:
key: "%CI_COMMIT_REF_SLUG%"
paths:
- "$CI_PROJECT_DIR/fw/deps"
policy: pull
script:
- 'cd $CI_PROJECT_DIR/fw && mix test'
dialyzer:
stage: test_firmware
cache:
key: "%CI_COMMIT_REF_SLUG%"
paths:
- "$CI_PROJECT_DIR/fw/deps"
policy: pull
script:
- 'cd $CI_PROJECT_DIR/fw && mix dialyzer --format long --halt-exit-status'
credo:
stage: test_firmware
cache:
key: "%CI_COMMIT_REF_SLUG%"
paths:
- "$CI_PROJECT_DIR/fw/deps"
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