run e2e in production mode (#607)

* run e2e in production mode

* update coverage settings

* fix coverage reports

* update e2e settings

* prod build for docker image

* restore dev build

* revert e2e mode

* update travis settings

* production build workaround

* update travis settings

* update travis

* build fixes
This commit is contained in:
Denys Vuika 2018-09-05 18:16:08 +01:00 committed by GitHub
parent 8711d56b79
commit c12ec405c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 10 deletions

View File

@ -26,10 +26,8 @@ jobs:
- stage: test
script: npm run lint && npm run spellcheck
- stage: test
script: npm run test:ci
script:
- npm run test:ci
- bash <(curl -s https://codecov.io/bash) -X gcov
- stage: e2e
script: npm run build:dev && npm run e2e:docker
# Send coverage data to codecov
after_success:
bash <(curl -s https://codecov.io/bash) -X gcov
script: npm run build && npm run e2e:docker

View File

@ -185,6 +185,11 @@
"options": {
"protractorConfig": "./protractor.conf.js",
"devServerTarget": "app:serve"
},
"configurations": {
"production": {
"devServerTarget": "app:serve:production"
}
}
},
"lint": {

View File

@ -8,10 +8,10 @@
"start:prod": "npm run server-versions && npm run build.libs.prod && ng serve --prod --open",
"build.libs.dev": "ng build adf-extensions && ng build aca-dev-tools",
"build.libs.prod": "ng build adf-extensions --prod && ng build aca-dev-tools --prod",
"build": "npm run server-versions && npm run build.libs.prod && ng build --prod",
"build": "npm run server-versions && npm run build.libs.prod && node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng build app --prod",
"build:dev": "npm run server-versions && npm run build.libs.dev && ng build",
"test": "npm run build.libs.dev && ng test app --code-coverage",
"test:ci": "npm run build.libs.dev && ng test app --watch=false",
"test:ci": "npm run build.libs.dev && ng test app --code-coverage --watch=false",
"lint": "ng lint",
"server-versions": "rimraf ./src/versions.json && npm list --depth=0 --json=true --prod=true > ./src/versions.json || exit 0",
"e2e": "ng e2e",

View File

@ -3,6 +3,14 @@
"dest": "../../dist/aca-dev-tools",
"deleteDestPath": false,
"lib": {
"entryFile": "src/public_api.ts"
"entryFile": "src/public_api.ts",
"flatModuleFile": "aca-dev-tools",
"umdModuleIds": {
"showdown": "showdown",
"@alfresco/adf-core": "@alfresco/adf-core",
"@ngstack/code-editor": "@ngstack/code-editor",
"@alfresco/adf-content-services": "@alfresco/adf-content-services",
"@alfresco/adf-extensions": "@alfresco/adf-extensions"
}
}
}
}