Commit 6aabf4ce authored by Konstantin Schulz's avatar Konstantin Schulz

included chrome browser setup in CI script and Dockerfile

parent 896290e9
Pipeline #10751 failed with stage
in 23 seconds
before_script:
- which node
- node --version
- which npm
- npm --version
- npm install
- npm i -g @angular/cli
- which ng
- ng version
#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
stages:
- test
- deploy
......@@ -14,6 +16,12 @@ coverage:
image: node:10.19.0-stretch
stage: test
script:
- 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
# - docker-compose build
# - docker-compose run mc_frontend npm run test
- npm run test
coverage: '/Statements.*?(\d+(?:\.\d+)?)%/'
tags:
......
......@@ -3,23 +3,20 @@ FROM node:10.19.0-stretch
RUN useradd -ms /bin/bash mc
WORKDIR /home/mc
RUN apt-get update
RUN apt-get -yq install nginx
# for testing
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN apt install -y ./google-chrome-stable_current_amd64.deb
COPY . mc_frontend
COPY nginx.conf /etc/nginx/nginx.conf
RUN install -Dv /dev/null /run/nginx/nginx.pid
#RUN chown -R mc:mc ./
#USER mc
WORKDIR /home/mc/mc_frontend
RUN npm i -g cordova && cordova telemetry off && npm i -g ionic
# to get the version of the local CLI package, run: npm list @angular/cli | sed 's/[^0-9.]*//g' | sed -n 2p
RUN npm i -g @angular/cli
RUN npm i -g cordova && cordova telemetry off && npm i -g @ionic/cli && npm i -g @angular/cli
RUN npm install
# workaround to fix the missing binding issue for node-sass
RUN npm rebuild node-sass
......
{
"name": "mc_frontend",
"version": "1.6.2",
"version": "1.6.3",
"author": "Ionic Framework",
"homepage": "https://ionicframework.com/",
"scripts": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment