.gitlab-ci.yml 929 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:8-jessie
  5. stages:
  6. - lint
  7. - build
  8. - test
  9. - deploy
  10. lint:
  11. stage: lint
  12. script:
  13. - yarn
  14. - npm run lint
  15. test:
  16. stage: test
  17. variables:
  18. APT_CACHE_DIR: apt-cache
  19. script:
  20. - mkdir -pv $APT_CACHE_DIR && apt-get -qq update
  21. - apt install firefox-esr -y --no-install-recommends
  22. - firefox --version
  23. - yarn
  24. - yarn unit
  25. build:
  26. stage: build
  27. script:
  28. - yarn
  29. - npm run build
  30. artifacts:
  31. paths:
  32. - dist/
  33. docs-deploy:
  34. stage: deploy
  35. image: alpine:latest
  36. only:
  37. - develop@pleroma/pleroma-fe
  38. before_script:
  39. - apk add curl
  40. script:
  41. - curl -X POST -F"token=$DOCS_PIPELINE_TRIGGER" -F'ref=master' https://git.pleroma.social/api/v4/projects/673/trigger/pipeline