.gitlab-ci.yml 769 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#before_script:
#  - which node
#  - node --version
#  - which npm
#  - npm --version
#  - npm install
#  - npm i -g @angular/cli
#  - which ng
#  - ng version
#  - sudo apt update
#  - sudo apt install -y google-chrome-stable
12 13 14 15
stages:
  - test
  - deploy
coverage:
16
#  image: node:10.19.0-stretch
17 18
  stage: test
  script:
19 20 21 22 23
#    - apt update
#    - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
#    - apt install -y ./google-chrome-stable_current_amd64.deb
#    - npm i -g @angular/cli
#    - npm install
24 25
    - docker-compose build
    - docker-compose run mc_frontend npm run test
26
#    - npm run test
27 28 29 30 31
  coverage: '/Statements.*?(\d+(?:\.\d+)?)%/'
  tags:
    - node
    - npm
    - angular
32 33
#  variables:
#    CHROME_BIN: chromium-browser