.gitlab-ci.yml 668 Bytes
Newer Older
Stefan Cameron's avatar
Stefan Cameron committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
image: node:latest

before_script:
  - node --version
  - npm --version
  - npm install

stages:
  - build
  - test

# cache modules in between jobs
cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
    - node_modules/

run-build-lib:
  stage: build
  script:
    - npm run build:lib
  artifacts:
    name: "build-lib-${CI_COMMIT_REF_SLUG}"
    paths:
      - dist/

run-build-internals:
  stage: build
  script:
    - npm run build:internals
  artifacts:
    name: "build-internals-${CI_COMMIT_REF_SLUG}"
    paths:
      - dist_tools/

run-tests:
  stage: test
  script:
    - npm test
  artifacts:
    name: "coverage-${CI_COMMIT_REF_SLUG}"
    paths:
      - coverage/