fix CI config
This commit is contained in:
parent
87160f5387
commit
bad4f7f83c
3 changed files with 5 additions and 6 deletions
|
@ -1,5 +1,3 @@
|
||||||
# Force sudo due to issue in travis
|
|
||||||
sudo: required
|
|
||||||
addons:
|
addons:
|
||||||
chrome: stable
|
chrome: stable
|
||||||
language: node_js
|
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
|
- 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
|
- tar xf src/environments/environments.tar -C src/environments
|
||||||
before_script:
|
before_script:
|
||||||
- export DISPLAY=:99.0
|
|
||||||
- sh -e /etc/init.d/xvfb start
|
|
||||||
- npm config set spin false
|
- npm config set spin false
|
||||||
install:
|
install:
|
||||||
- npm install
|
- npm install
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
"build:dev": "ng build --configuration=dev",
|
"build:dev": "ng build --configuration=dev",
|
||||||
"build:prod": "ng build --configuration=prod",
|
"build:prod": "ng build --configuration=prod",
|
||||||
"test": "ng test",
|
"test": "ng test",
|
||||||
"test:ci": "ng test --watch=false",
|
"test:ci": "ng test --watch=false --browsers=ChromeHeadless --configuration=ci",
|
||||||
"lint": "ng lint",
|
"lint": "ng lint",
|
||||||
"e2e": "ng e2e",
|
"e2e": "ng e2e",
|
||||||
"e2e:ci": "ng e2e --configuration=ci",
|
"e2e:ci": "ng e2e --configuration=ci",
|
||||||
|
|
|
@ -9,7 +9,10 @@ exports.config = {
|
||||||
'./e2e/**/*.e2e-spec.ts'
|
'./e2e/**/*.e2e-spec.ts'
|
||||||
],
|
],
|
||||||
capabilities: {
|
capabilities: {
|
||||||
'browserName': 'chrome'
|
'browserName': 'chrome',
|
||||||
|
chromeOptions: {
|
||||||
|
args: [ "--headless" ]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
directConnect: true,
|
directConnect: true,
|
||||||
baseUrl: 'http://localhost:4200/',
|
baseUrl: 'http://localhost:4200/',
|
||||||
|
|
Reference in a new issue