astarte-platform / astarte_vmq_plugin

Astarte VerneMQ plugin publishes incoming messages on an AMQP exchange with some additional metadata, so they can be processed by other components.
http://astarte-platform.org/
Apache License 2.0
16 stars 10 forks source link

Docker and CI cleanup #2

Closed rbino closed 4 years ago

rbino commented 4 years ago
  1. Travis CI (release-0.10, on Github)

    • [x] Add Travis CI
  2. Gitlab CI cleanup (release-0.10, on Gitlab)

    • [x] Cache deps directory using $CI_COMMIT_REF_SLUG cache key
    • [x] Use RabbitMQ 3.7.15
    • [x] test stage, consisting of 2 jobs:
    • mix:test-coverage: runs mix coveralls.details
    • docker:test-container: builds the docker image without pushing it
    • [x] deploy stage, consisting of 1 job:
    • docker:snapshot-prod-container: builds the docker image with env prod and pushes it to Gitlab Registry
    • [x] Replace DOCKER_REGISTRY with CI_REGISTRY
  3. Dockerfile + Gitlab CI cleanup (master, on Gitlab)

    • [x] Add mix format --check-formatted to test-coverage
    • [x] Add config/ci.exs with just use Mix.Config to be able to use ci as env.
    • [x] Add dialyzex dep and configure it to use local directory for PLTs in ci env
    • [x] Add the PLTs directory to cached paths
    • [x] Add mix:test-dialyzer job to test stage, runs mix dialyzer in ci env.
  4. Travis CI cleanup (master, on Github)

    • [x] Use elixir 1.8.1 and otp 21.3
    • [x] Update RabbitMQ to 3.7.21
    • [x] Add mix format --check-formatted so that it runs for external contributions