.gitlab-ci.yml 947 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # This file is a template, and might need editing before it works on your project.
  2. # Official framework image. Look for the different tagged releases at:
  3. # https://hub.docker.com/r/library/node/tags/
  4. image: node:10
  5. stages:
  6. - lint
  7. - build
  8. - test
  9. - deploy
  10. lint:
  11. stage: lint
  12. script:
  13. - yarn
  14. - npm run lint
  15. - npm run stylelint
  16. test:
  17. stage: test
  18. variables:
  19. APT_CACHE_DIR: apt-cache
  20. script:
  21. - mkdir -pv $APT_CACHE_DIR && apt-get -qq update
  22. - apt install firefox-esr -y --no-install-recommends
  23. - firefox --version
  24. - yarn
  25. - yarn unit
  26. build:
  27. stage: build
  28. script:
  29. - yarn
  30. - npm run build
  31. artifacts:
  32. paths:
  33. - dist/
  34. docs-deploy:
  35. stage: deploy
  36. image: alpine:latest
  37. only:
  38. - develop@pleroma/pleroma-fe
  39. before_script:
  40. - apk add curl
  41. script:
  42. - curl -X POST -F"token=$DOCS_PIPELINE_TRIGGER" -F'ref=master' https://git.pleroma.social/api/v4/projects/673/trigger/pipeline