fix CI config

This commit is contained in:
Thomas Bloor 2019-09-09 20:55:21 +01:00
parent 87160f5387
commit bad4f7f83c
No known key found for this signature in database
GPG key ID: 4657C7EBE42CC5CC
3 changed files with 5 additions and 6 deletions

View file

@ -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

View file

@ -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",

View file

@ -9,7 +9,10 @@ exports.config = {
'./e2e/**/*.e2e-spec.ts'
],
capabilities: {
'browserName': 'chrome'
'browserName': 'chrome',
chromeOptions: {
args: [ "--headless" ]
}
},
directConnect: true,
baseUrl: 'http://localhost:4200/',