image: elixir:latest cache: key: "$CI_JOB_NAME" paths: - deps - _build - /root/.mix variables: MIX_ENV: "test" before_script: - mix local.hex --force - mix local.rebar --force - mix deps.get --only test test: stage: test script: - mix test integrate: stage: test tags: - sense-hat script: - SENSE_HAT_PRESENT=true mix test credo: stage: test script: - mix credo audit: stage: test script: - mix hex.audit format: stage: test script: - mix format --check-formatted pages: stage: deploy script: - mix docs -o public artifacts: paths: - public only: - master package: stage: deploy only: - /^v[0-9]+\.[0-9]+\.[0-9]+$/ script: - mix hex.build artifacts: paths: - "wafer-*.tar"