mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
31 lines
1.2 KiB
YAML
31 lines
1.2 KiB
YAML
image: node:14.15.0
|
|
|
|
pipelines:
|
|
branches:
|
|
'{master,test}':
|
|
# - step:
|
|
# caches:
|
|
# - node
|
|
# script:
|
|
# - apt-get update; apt-get install -y gettext-base;
|
|
# - echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' > /etc/apt/sources.list.d/chrome.list
|
|
# - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
|
|
# - set -x && apt-get update && apt-get install -y xvfb google-chrome-stable
|
|
# - wget -q -O /usr/bin/xvfb-chrome https://bitbucket.org/atlassian/docker-node-chrome-firefox/raw/ff180e2f16ea8639d4ca4a3abb0017ee23c2836c/scripts/xvfb-chrome
|
|
# - ln -sf /usr/bin/xvfb-chrome /usr/bin/google-chrome
|
|
# - chmod 755 /usr/bin/google-chrome
|
|
# - npm ci
|
|
# - npm install
|
|
# - ./node_modules/@angular/cli/bin/ng -v
|
|
# - npm run test
|
|
|
|
- step:
|
|
caches:
|
|
- node
|
|
script:
|
|
- apt-get update;
|
|
- npm ci
|
|
- npm install
|
|
- ./node_modules/@angular/cli/bin/ng -v
|
|
- npm run build --prod
|
|
|