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.

32 lines
501B

  1. image: elixir:1.6.4
  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. stages:
  10. - lint
  11. - test
  12. before_script:
  13. - mix local.hex --force
  14. - mix local.rebar --force
  15. - mix deps.get
  16. - MIX_ENV=test mix ecto.create
  17. - MIX_ENV=test mix ecto.migrate
  18. lint:
  19. stage: lint
  20. script:
  21. - MIX_ENV=test mix format --check-formatted
  22. unit-testing:
  23. stage: test
  24. script:
  25. - MIX_ENV=test mix test --trace