diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4c60965..13730d3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,9 +36,17 @@ build: reports: dotenv: project_info.env -build_i2c_1_x: +test: image: elixir:latest - stage: build + dependencies: + - build + stage: test + script: + - mix test + +build_and_test_i2c_1_x: + image: elixir:latest + stage: test cache: key: "$CI_JOB_NAME" paths: @@ -51,31 +59,13 @@ build_i2c_1_x: - mix local.rebar --force - CI_I2C_1_X=true mix deps.get - mix deps.compile - - mix git_ops.project_info -f dotenv > project_info.env + - mix test artifacts: paths: - _build/ - deps/ - .hex - .mix - reports: - dotenv: project_info.env - -test: - image: elixir:latest - dependencies: - - build - stage: test - script: - - mix test - -test_i2c_1_x: - image: elixir:latest - dependencies: - - build_i2c_1_x - stage: test - script: - - CI_I2C_1_X=true mix test integrate: image: elixir:latest