From 804fb99d661eed176aac5bb34ea2d677f29855a2 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Wed, 31 Oct 2018 13:33:17 +0200 Subject: [PATCH] ci: make `integration_test` job logs less verbose (#26869) The build progress logs accounted for ~80% of the total log size, which makes it harder to get to the interesting lines, such as error messages. Used suggestion from [here][1]. [1]: https://github.com/angular/angular-cli/issues/11412#issuecomment-412021539 PR Close #26869 --- integration/cli-hello-world/angular.json | 13 +++++++++++++ integration/cli-hello-world/package.json | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/integration/cli-hello-world/angular.json b/integration/cli-hello-world/angular.json index 0e6f64e89a..67d63e6c45 100644 --- a/integration/cli-hello-world/angular.json +++ b/integration/cli-hello-world/angular.json @@ -76,6 +76,13 @@ }, "production": { "browserTarget": "cli-hello-world:build:production" + }, + "ci": { + "progress": false + }, + "ci-production": { + "browserTarget": "cli-hello-world:build:production", + "progress": false } } }, @@ -141,6 +148,12 @@ "configurations": { "production": { "devServerTarget": "cli-hello-world:serve:production" + }, + "ci": { + "devServerTarget": "cli-hello-world:serve:ci" + }, + "ci-production": { + "devServerTarget": "cli-hello-world:serve:ci-production" } } }, diff --git a/integration/cli-hello-world/package.json b/integration/cli-hello-world/package.json index 9b13f6cdac..4cf8e80d16 100644 --- a/integration/cli-hello-world/package.json +++ b/integration/cli-hello-world/package.json @@ -4,12 +4,12 @@ "license": "MIT", "scripts": { "build": "ng build --prod --progress=false", - "e2e": "ng e2e", + "e2e": "ng e2e --webdriver-update=false", "lint": "ng lint", "ng": "ng", "postinstall": "webdriver-manager update --gecko=false --standalone=false $CHROMEDRIVER_VERSION_ARG", "start": "ng serve", - "test": "ng test --progress=false --watch=false && ng e2e --webdriver-update=false && ng e2e --prod --webdriver-update=false" + "test": "ng test --progress=false --watch=false && yarn e2e --configuration=ci && yarn e2e --configuration=ci-production" }, "private": true, "dependencies": {