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

Attempt to cache deps for ci stages

parent 9dcc057f
Pipeline #51551601 (#136) failed with stages
in 3 minutes and 7 seconds
...@@ -5,35 +5,61 @@ variables: ...@@ -5,35 +5,61 @@ variables:
MIX_TARGET: "host" MIX_TARGET: "host"
stages: stages:
- prepare_firmware_deps
- test_firmware - test_firmware
- test_phoenix - test_phoenix
- deploy - deploy
before_script: prepare_firmware_deps:
# - 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 stage: prepare_firmware_deps
- cd /srv/ && mix local.hex --force cache:
- mix local.rebar --force key: "%CI_COMMIT_REF_SLUG%"
- mix archive.install --force hex nerves_bootstrap paths:
- mix local.nerves --force - "$CI_PROJECT_DIR/fw/deps"
- 'cd $CI_PROJECT_DIR/fw && mix deps.get --only test' 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: compile_with_warnings_as_errors:
stage: test_firmware stage: test_firmware
cache:
key: "%CI_COMMIT_REF_SLUG%"
paths:
- "$CI_PROJECT_DIR/fw/deps"
policy: pull
script: script:
- 'cd $CI_PROJECT_DIR/fw && mix compile --warnings-as-errors' - 'cd $CI_PROJECT_DIR/fw && mix compile --warnings-as-errors'
unit_testing: unit_testing:
stage: test_firmware stage: test_firmware
cache:
key: "%CI_COMMIT_REF_SLUG%"
paths:
- "$CI_PROJECT_DIR/fw/deps"
policy: pull
script: script:
- 'cd $CI_PROJECT_DIR/fw && mix test' - 'cd $CI_PROJECT_DIR/fw && mix test'
dialyzer: dialyzer:
stage: test_firmware stage: test_firmware
cache:
key: "%CI_COMMIT_REF_SLUG%"
paths:
- "$CI_PROJECT_DIR/fw/deps"
policy: pull
script: script:
- 'cd $CI_PROJECT_DIR/fw && mix dialyzer --format long --halt-exit-status' - 'cd $CI_PROJECT_DIR/fw && mix dialyzer --format long --halt-exit-status'
credo: credo:
stage: test_firmware stage: test_firmware
cache:
key: "%CI_COMMIT_REF_SLUG%"
paths:
- "$CI_PROJECT_DIR/fw/deps"
policy: pull
script: script:
- 'cd $CI_PROJECT_DIR/fw && mix credo' - '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