.gitlab-ci.yml 577 Bytes
Newer Older
1 2 3 4 5 6
image: node:10

cache:
  paths:
    - build
    - node_modules
7
    - .cache
8
    - src/schema-config.json
9 10 11

stages:
  - build
12
  - lint
13 14 15
  - test
  - deploy

16 17
build:
  stage: build
18 19 20
  tags:
    - docker
  script:
21
    - ci/build.sh
22

23 24
lint:
  stage: lint
25 26 27
  tags:
    - docker
  script:
28
    - ci/lint.sh
29 30 31 32 33 34

test:
  stage: test
  tags:
    - docker
  script:
35 36
    # workaround DNS problem in my CI environment
    - echo "nameserver 9.9.9.9" > "/etc/resolv.conf" 
37 38
    - ci/test.sh

39 40 41 42 43 44 45 46
# deploy:
#   stage: deploy
#   tags:
#     - docker
#   script:
#     - ci/deploy.sh
#   only:
#     - tags