mix ca.release (elixir_structure_manager v1.3.0)

Run common static code analysis tools and tests for the project Run mix release and move compressed artifact to _build/release/artifact folder

Examples:

$ mix ca.release

It generates the following files:

  • _build/release/credo_sonarqube.json
  • _build/release/excoveralls.xml
  • _build/release/generic_test_execution_sonarqube.xml
  • _build/release/sobelow.json
  • _build/release/sobelow_sonarqube.json
  • _build/release/test-junit-report.xml
  • _build/release/artifact/<app-name>.tar.gz

You can skip some task with --skiptest or --skipreleasee options:

$ mix ca.release --skiptest
$ mix ca.release --skiprelease

You can run the tasks inside a container with --container option:

$ mix ca.release --container

this uses the following configuration:
* container_tool: docker
* container_file: resources/cloud/Dockerfile-build
* container_base_image: 1.16.2-otp-26-alpine

You can change the configuration in config/config.exs with:

config :elixir_structure_manager,
  container_tool: "docker",
  container_file: "resources/cloud/Dockerfile-build",
  container_base_image: "1.16.2-otp-26-alpine"

Summary

Functions

Link to this function

execute_local(skip_release, skip_test)