Skip to content
Snippets Groups Projects
Commit e1a7735c authored by François Agneray's avatar François Agneray
Browse files

Coverage in var (gitlab-ci)

parent 7e815c8d
No related branches found
No related tags found
1 merge request!68Develop
Pipeline #1606 passed
......@@ -29,7 +29,7 @@ out-tsc
/e2e/*.js
/e2e/*.map
/typings
/coverage
/var
#--- OTHER ---#
......
......@@ -38,7 +38,7 @@ test:
paths:
- dist
- node_modules
- coverage
- var
policy: pull-push
only:
refs:
......@@ -56,11 +56,11 @@ sonar_scanner:
-Dsonar.host.url=$SONARQUBE_URL
-Dsonar.login=$SONAR_TOKEN
-Dsonar.exclusions=**.spec.ts
-Dsonar.typescript.lcov.reportPaths=./coverage/lcov.info
-Dsonar.typescript.lcov.reportPaths=./var/coverage/lcov.info
cache:
paths:
- node_modules
- coverage
- var
policy: pull
only:
refs:
......@@ -70,16 +70,15 @@ build-coverage:
image: docker:stable
stage: build-coverage
script:
- mkdir build-coverage
- echo "FROM nginx" > build-coverage/Dockerfile
- echo "COPY ../coverage /usr/share/nginx/html" >> build-coverage/Dockerfile
- echo "FROM nginx" > var/Dockerfile
- echo "COPY coverage /usr/share/nginx/html" >> var/Dockerfile
- docker login -u fagneray -p $PORTUS_TOKEN portus.lam.fr
- docker pull $COVERAGE_IMAGE:latest || true
- docker build --cache-from $COVERAGE_IMAGE:latest -t $COVERAGE_IMAGE:latest build-coverage
- docker build --cache-from $COVERAGE_IMAGE:latest -t $COVERAGE_IMAGE:latest var
- docker push $COVERAGE_IMAGE:latest
cache:
paths:
- coverage
- var
policy: pull
only:
refs:
......
FROM node:11
FROM node:12-slim
ENV DEBIAN_FRONTEND=noninteractive
# Yarn
RUN yarn global add @angular/cli
RUN ng config -g cli.packageManager yarn
# Chrome
RUN echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' > /etc/apt/sources.list.d/chrome.list
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
# Chromium
RUN apt-get update \
&& apt-get install -y google-chrome-stable
# ENV CHROME_BIN /usr/bin/google-chrome
&& apt-get install -y --no-install-recommends chromium
ENV CHROME_BIN=chromium
CMD ["bash"]
......@@ -16,7 +16,7 @@ module.exports = function (config) {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, './coverage'),
dir: require('path').join(__dirname, './var/coverage'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
......@@ -32,7 +32,6 @@ module.exports = function (config) {
flags: ['--no-sandbox'],
}
},
autoWatch: true,
singleRun: false
});
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment