summaryrefslogtreecommitdiff
path: root/pse-dashboard/.gitlab-ci.yml
blob: 5d70b0ccfdf0d97e7361ee74e50521516e060adc (plain)
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
variables:
  #BASE_DIR: $CI_PAGES_URL
  BASE_DIR: /pse-dashboard/

image: node

stages:
  - test
  - deploy

lint:
  stage: test
  script: 
    - npm install
    - npm run lint
  allow_failure: true


pages:
  stage: deploy
  script:
    - npm install
    - npm run build
    - rm -rf public
    - mv dist public
  artifacts:
    paths:
      - public
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH