.gitlab-ci.yml 649 B

1234567891011121314151617181920212223242526272829303132333435
  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. lint:
  10. stage: lint
  11. script:
  12. - yarn
  13. - npm run lint
  14. test:
  15. stage: test
  16. variables:
  17. APT_CACHE_DIR: apt-cache
  18. script:
  19. - mkdir -pv $APT_CACHE_DIR && apt-get -qq update
  20. - apt install firefox-esr -y --no-install-recommends
  21. - firefox --version
  22. - yarn
  23. - npm run unit
  24. build:
  25. stage: build
  26. script:
  27. - yarn
  28. - npm run build
  29. artifacts:
  30. paths:
  31. - dist/