From 732088295e2a3258c8e83cb0604a2ddbbd80911d Mon Sep 17 00:00:00 2001 From: Thomas Bloor Date: Mon, 9 Sep 2019 20:55:21 +0100 Subject: [PATCH] fix CI config --- .travis.yml | 4 ---- package.json | 2 +- protractor.conf.js | 5 ++++- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 428a222..cced2fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,3 @@ -# Force sudo due to issue in travis -sudo: required addons: chrome: stable language: node_js @@ -9,8 +7,6 @@ before_install: - openssl aes-256-cbc -K $encrypted_9d2af3734b6c_key -iv $encrypted_9d2af3734b6c_iv -in src/environments/environments.tar.enc -out src/environments/environments.tar -d - tar xf src/environments/environments.tar -C src/environments before_script: - - export DISPLAY=:99.0 - - sh -e /etc/init.d/xvfb start - npm config set spin false install: - npm install diff --git a/package.json b/package.json index b4b0703..db30269 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "build:dev": "ng build --configuration=dev", "build:prod": "ng build --configuration=prod", "test": "ng test", - "test:ci": "ng test --watch=false", + "test:ci": "ng test --watch=false --browsers=ChromeHeadless --configuration=ci", "lint": "ng lint", "e2e": "ng e2e", "e2e:ci": "ng e2e --configuration=ci", diff --git a/protractor.conf.js b/protractor.conf.js index 1c5e1e5..7775398 100644 --- a/protractor.conf.js +++ b/protractor.conf.js @@ -9,7 +9,10 @@ exports.config = { './e2e/**/*.e2e-spec.ts' ], capabilities: { - 'browserName': 'chrome' + 'browserName': 'chrome', + chromeOptions: { + args: [ "--headless" ] + } }, directConnect: true, baseUrl: 'http://localhost:4200/',