Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
582B

  1. image: elixir:1.7.2
  2. services:
  3. - postgres:9.6.2
  4. variables:
  5. POSTGRES_DB: pleroma_test
  6. POSTGRES_USER: postgres
  7. POSTGRES_PASSWORD: postgres
  8. DB_HOST: postgres
  9. cache:
  10. key: ${CI_COMMIT_REF_SLUG}
  11. paths:
  12. - deps
  13. - _build
  14. stages:
  15. - lint
  16. - test
  17. before_script:
  18. - mix local.hex --force
  19. - mix local.rebar --force
  20. - mix deps.get
  21. - MIX_ENV=test mix ecto.create
  22. - MIX_ENV=test mix ecto.migrate
  23. lint:
  24. stage: lint
  25. script:
  26. - MIX_ENV=test mix format --check-formatted
  27. unit-testing:
  28. stage: test
  29. script:
  30. - MIX_ENV=test mix test --trace