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.

46 lines
829B

  1. image: elixir:1.8.1
  2. services:
  3. - name: postgres:9.6.2
  4. command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
  5. variables:
  6. POSTGRES_DB: pleroma_test
  7. POSTGRES_USER: postgres
  8. POSTGRES_PASSWORD: postgres
  9. DB_HOST: postgres
  10. MIX_ENV: test
  11. cache:
  12. key: ${CI_COMMIT_REF_SLUG}
  13. paths:
  14. - deps
  15. - _build
  16. stages:
  17. - lint
  18. - test
  19. - analysis
  20. before_script:
  21. - mix local.hex --force
  22. - mix local.rebar --force
  23. - mix deps.get
  24. - mix compile --force
  25. - mix ecto.create
  26. - mix ecto.migrate
  27. lint:
  28. stage: lint
  29. script:
  30. - mix format --check-formatted
  31. unit-testing:
  32. stage: test
  33. script:
  34. - mix test --trace --preload-modules
  35. analysis:
  36. stage: analysis
  37. script:
  38. - mix credo --strict --only=warnings,todo,fixme,consistency,readability