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.

39 lines
570B

  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. MIX_ENV: test
  10. cache:
  11. key: ${CI_COMMIT_REF_SLUG}
  12. paths:
  13. - deps
  14. - _build
  15. stages:
  16. - lint
  17. - test
  18. before_script:
  19. - mix local.hex --force
  20. - mix local.rebar --force
  21. - mix deps.get
  22. - mix compile --force
  23. - mix ecto.create
  24. - mix ecto.migrate
  25. lint:
  26. stage: lint
  27. script:
  28. - mix format --check-formatted
  29. unit-testing:
  30. stage: test
  31. script:
  32. - mix test --trace