.gitlab-ci.yml 993 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:8
  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. - firefox --headless --screenshot test.jpg https://pleroma.social/
  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