fix CI config
This commit is contained in:
parent
45c534f4a6
commit
732088295e
3 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -9,7 +9,10 @@ exports.config = {
|
|||
'./e2e/**/*.e2e-spec.ts'
|
||||
],
|
||||
capabilities: {
|
||||
'browserName': 'chrome'
|
||||
'browserName': 'chrome',
|
||||
chromeOptions: {
|
||||
args: [ "--headless" ]
|
||||
}
|
||||
},
|
||||
directConnect: true,
|
||||
baseUrl: 'http://localhost:4200/',
|
||||
|
|
Reference in a new issue