Commit 90af41d7 authored by Frank Kumro's avatar Frank Kumro

Testing new pipeline ordering / caching

parent edcaedbc
Pipeline #51925952 failed with stages
in 19 minutes and 53 seconds
......@@ -8,16 +8,14 @@ variables:
NERVES_ENV_DISABLED: 1
stages:
- prepare_nerves_deps
- test_nerves
- prepare_phoenix_deps
- test_phoenix
- prepare_deps
- test
- deploy
prepare_nerves_deps:
stage: prepare_nerves_deps
prepare_nerves:
stage: prepare_deps
cache:
key: $CI_COMMIT_REF_SLUG
key: "$CI_COMMIT_REF_SLUG-nerves"
paths:
- "$CI_PROJECT_DIR/fw/deps/"
- "$CI_PROJECT_DIR/fw/_build/"
......@@ -30,10 +28,10 @@ prepare_nerves_deps:
- mix local.nerves --force
- 'cd $CI_PROJECT_DIR/fw && mix deps.get --only test'
prepare_phoenix_deps:
stage: prepare_phoenix_deps
prepare_phoenix:
stage: prepare_deps
cache:
key: $CI_COMMIT_REF_SLUG
key: "$CI_COMMIT_REF_SLUG-phoenix"
paths:
- "$CI_PROJECT_DIR/ui/deps/"
- "$CI_PROJECT_DIR/ui/_build/"
......@@ -46,9 +44,9 @@ prepare_phoenix_deps:
- 'cd $CI_PROJECT_DIR/ui && mix deps.get --only test'
compile_with_warnings_as_errors_nerves:
stage: test_nerves
stage: test
cache:
key: $CI_COMMIT_REF_SLUG
key: "$CI_COMMIT_REF_SLUG-nerves"
paths:
- "$CI_PROJECT_DIR/fw/deps/"
- "$CI_PROJECT_DIR/fw/_build/"
......@@ -59,9 +57,9 @@ compile_with_warnings_as_errors_nerves:
- 'cd $CI_PROJECT_DIR/fw && mix compile --warnings-as-errors'
unit_testing_nerves:
stage: test_nerves
stage: test
cache:
key: $CI_COMMIT_REF_SLUG
key: "$CI_COMMIT_REF_SLUG-nerves"
paths:
- "$CI_PROJECT_DIR/fw/deps/"
- "$CI_PROJECT_DIR/fw/_build/"
......@@ -72,9 +70,9 @@ unit_testing_nerves:
- 'cd $CI_PROJECT_DIR/fw && mix test'
dialyzer_nerves:
stage: test_nerves
stage: test
cache:
key: $CI_COMMIT_REF_SLUG
key: "$CI_COMMIT_REF_SLUG-nerves"
paths:
- "$CI_PROJECT_DIR/fw/deps/"
- "$CI_PROJECT_DIR/fw/_build/"
......@@ -85,9 +83,9 @@ dialyzer_nerves:
- 'cd $CI_PROJECT_DIR/fw && mix dialyzer --format long --halt-exit-status'
credo_nerves:
stage: test_nerves
stage: test
cache:
key: $CI_COMMIT_REF_SLUG
key: "$CI_COMMIT_REF_SLUG-nerves"
paths:
- "$CI_PROJECT_DIR/fw/deps/"
- "$CI_PROJECT_DIR/fw/_build/"
......@@ -98,9 +96,9 @@ credo_nerves:
- 'cd $CI_PROJECT_DIR/fw && mix credo'
compile_with_warnings_as_errors_phoenix:
stage: test_phoenix
stage: test
cache:
key: $CI_COMMIT_REF_SLUG
key: "$CI_COMMIT_REF_SLUG-phoenix"
paths:
- "$CI_PROJECT_DIR/ui/deps/"
- "$CI_PROJECT_DIR/ui/_build/"
......@@ -111,9 +109,9 @@ compile_with_warnings_as_errors_phoenix:
- 'cd $CI_PROJECT_DIR/ui && mix compile --warnings-as-errors'
unit_testing_phoenix:
stage: test_phoenix
stage: test
cache:
key: $CI_COMMIT_REF_SLUG
key: "$CI_COMMIT_REF_SLUG-phoenix"
paths:
- "$CI_PROJECT_DIR/ui/deps/"
- "$CI_PROJECT_DIR/ui/_build/"
......@@ -124,9 +122,9 @@ unit_testing_phoenix:
- 'cd $CI_PROJECT_DIR/ui && mix test'
dialyzer_phoenix:
stage: test_phoenix
stage: test
cache:
key: $CI_COMMIT_REF_SLUG
key: "$CI_COMMIT_REF_SLUG-phoenix"
paths:
- "$CI_PROJECT_DIR/ui/deps/"
- "$CI_PROJECT_DIR/ui/_build/"
......@@ -137,9 +135,9 @@ dialyzer_phoenix:
- 'cd $CI_PROJECT_DIR/ui && mix dialyzer --format long --halt-exit-status'
credo_phoenix:
stage: test_phoenix
stage: test
cache:
key: $CI_COMMIT_REF_SLUG
key: "$CI_COMMIT_REF_SLUG-phoenix"
paths:
- "$CI_PROJECT_DIR/ui/deps/"
- "$CI_PROJECT_DIR/ui/_build/"
......
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