.gitlab-ci.yml 473 B

123456789101112131415161718192021222324252627282930
  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:7
  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. script:
  17. - yarn
  18. - npm run unit
  19. build:
  20. stage: build
  21. script:
  22. - yarn
  23. - npm run build
  24. artifacts:
  25. paths:
  26. - dist/