[AAE-6555] Rename the app into content-ce (#2375)

* Rename the app into conten-ce

* switch test to singleRun true

* Fix typo

* Use single run false for libs

* run test content-ce
This commit is contained in:
Maurizio Vitale 2021-12-07 18:23:20 +00:00 committed by GitHub
parent 056ff4b011
commit 4d1dab60b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 25 additions and 25 deletions

View File

@ -70,24 +70,24 @@ jobs:
- stage: Quality and Unit tests - stage: Quality and Unit tests
name: 'Unit tests: aos' name: 'Unit tests: aos'
script: npm ci && ng test adf-office-services-ext --watch=false script: npm ci && ng test adf-office-services-ext
cache: false cache: false
- stage: Quality and Unit tests - stage: Quality and Unit tests
name: 'Unit tests: aca-shared' name: 'Unit tests: aca-shared'
script: npm ci && ng test aca-shared --watch=false script: npm ci && ng test aca-shared
cache: false cache: false
- stage: Quality and Unit tests - stage: Quality and Unit tests
name: 'Unit tests: aca-settings' name: 'Unit tests: aca-settings'
script: npm ci && ng test aca-settings --watch=false script: npm ci && ng test aca-settings
cache: false cache: false
- stage: Quality and Unit tests - stage: Quality and Unit tests
name: 'Unit tests: ACA' name: 'Unit tests: ACA'
script: script:
- npm ci - npm ci
- ng test app --watch=false - ng test content-ce
cache: false cache: false
- stage: e2e - stage: e2e
@ -204,14 +204,14 @@ jobs:
- stage: Publish Docker Registry - stage: Publish Docker Registry
name: Publish Docker Registry name: Publish Docker Registry
script: ./scripts/travis/deploy/publish.sh "app" "$DOCKER_REPOSITORY_DOMAIN" "$QUAY_USERNAME" "$QUAY_PASSWORD" script: ./scripts/travis/deploy/publish.sh "content-ce" "$DOCKER_REPOSITORY_DOMAIN" "$QUAY_USERNAME" "$QUAY_PASSWORD"
- stage: Release Tag and Publish to Dockerhub - stage: Release Tag and Publish to Dockerhub
name: Release Tag name: Release Tag
script: ./scripts/travis/release/git-tag.sh script: ./scripts/travis/release/git-tag.sh
- name: Publish to Dockerhub - name: Publish to Dockerhub
script: ./scripts/travis/deploy/publish.sh "app" "$DOCKER_HUB_REPOSITORY_DOMAIN" "$DOCKER_HUB_USERNAME" "$DOCKER_HUB_PASSWORD" script: ./scripts/travis/deploy/publish.sh "content-ce" "$DOCKER_HUB_REPOSITORY_DOMAIN" "$DOCKER_HUB_USERNAME" "$DOCKER_HUB_PASSWORD"
- stage: Trigger DW - stage: Trigger DW
script: ./scripts/trigger-travis.sh --pro --branch $TRAVIS_BRANCH Alfresco alfresco-digital-workspace-app $TRAVIS_ACCESS_TOKEN script: ./scripts/trigger-travis.sh --pro --branch $TRAVIS_BRANCH Alfresco alfresco-digital-workspace-app $TRAVIS_ACCESS_TOKEN

View File

@ -3,7 +3,7 @@
"version": 1, "version": 1,
"newProjectRoot": "projects", "newProjectRoot": "projects",
"projects": { "projects": {
"app": { "content-ce": {
"root": "", "root": "",
"sourceRoot": "src", "sourceRoot": "src",
"projectType": "application", "projectType": "application",
@ -179,20 +179,20 @@
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": { "options": {
"browserTarget": "app:build", "browserTarget": "content-ce:build",
"port": 4200, "port": 4200,
"host": "0.0.0.0", "host": "0.0.0.0",
"proxyConfig": "src/proxy.conf.js" "proxyConfig": "src/proxy.conf.js"
}, },
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "app:build:production" "browserTarget": "content-ce:build:production"
}, },
"e2e": { "e2e": {
"browserTarget": "app:build:e2e" "browserTarget": "content-ce:build:e2e"
}, },
"release": { "release": {
"browserTarget": "app:build:release" "browserTarget": "content-ce:build:release"
} }
} }
}, },
@ -200,7 +200,7 @@
"builder": "@angular-custom-builders/lite-serve:dist-serve", "builder": "@angular-custom-builders/lite-serve:dist-serve",
"options": { "options": {
"publicHost": "http://localhost:4200", "publicHost": "http://localhost:4200",
"browserTarget": "app:build" "browserTarget": "content-ce:build"
}, },
"configurations": { "configurations": {
"standalone": { "standalone": {
@ -211,7 +211,7 @@
"extract-i18n": { "extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n", "builder": "@angular-devkit/build-angular:extract-i18n",
"options": { "options": {
"browserTarget": "app:build" "browserTarget": "content-ce:build"
} }
}, },
"test": { "test": {
@ -292,11 +292,11 @@
"builder": "@angular-devkit/build-angular:protractor", "builder": "@angular-devkit/build-angular:protractor",
"options": { "options": {
"protractorConfig": "./protractor.conf.js", "protractorConfig": "./protractor.conf.js",
"devServerTarget": "app:serve" "devServerTarget": "content-ce:serve"
}, },
"configurations": { "configurations": {
"production": { "production": {
"devServerTarget": "app:serve:production" "devServerTarget": "content-ce:serve:production"
} }
} }
}, },
@ -305,7 +305,7 @@
"options": { "options": {
"protractorConfig": "protractor.conf.js", "protractorConfig": "protractor.conf.js",
"webdriverUpdate": false, "webdriverUpdate": false,
"devServerTarget": "app:lite-serve", "devServerTarget": "content-ce:lite-serve",
"invertGrep": true "invertGrep": true
} }
}, },
@ -490,7 +490,7 @@
} }
} }
}, },
"defaultProject": "app", "defaultProject": "content-ce",
"schematics": { "schematics": {
"@schematics/angular:component": { "@schematics/angular:component": {
"prefix": "aca", "prefix": "aca",

View File

@ -71,7 +71,7 @@ module.exports = function(config) {
] ]
} }
}, },
singleRun: false, singleRun: true,
captureTimeout: 180000, captureTimeout: 180000,
browserDisconnectTimeout: 180000, browserDisconnectTimeout: 180000,

View File

@ -11,18 +11,18 @@
"prestart": "mkdir -p ./src/.tmp && npm run assemble-app-config && npm run validate-app-config", "prestart": "mkdir -p ./src/.tmp && npm run assemble-app-config && npm run validate-app-config",
"start": "ng serve", "start": "ng serve",
"start:prod": "npm run validate-app-config && node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng serve --prod --open", "start:prod": "npm run validate-app-config && node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng serve --prod --open",
"build.app": "node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng build app", "build.app": "node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng build content-ce",
"prebuild": "mkdir -p ./src/.tmp && cp ./src/app.config.json.tpl ./src/.tmp/app.config.json", "prebuild": "mkdir -p ./src/.tmp && cp ./src/app.config.json.tpl ./src/.tmp/app.config.json",
"build": "ng build", "build": "ng build",
"build.release": "npm run build.app -- --configuration=production,release", "build.release": "npm run build.app -- --configuration=production,release",
"test": "ng test", "test": "ng test",
"test:ci": "ng test adf-office-services-ext --watch=false && ng test app --code-coverage --watch=false", "test:ci": "ng test adf-office-services-ext && ng test content-ce --code-coverage",
"lint": "ng lint && npm run spellcheck && npm run e2e.typecheck", "lint": "ng lint && npm run spellcheck && npm run e2e.typecheck",
"update-webdriver": "./scripts/update-webdriver.sh", "update-webdriver": "./scripts/update-webdriver.sh",
"e2e.typecheck": "tsc -p ./e2e/tsconfig.e2e.typecheck.json", "e2e.typecheck": "tsc -p ./e2e/tsconfig.e2e.typecheck.json",
"e2e": "npm run update-webdriver && protractor $SUITE", "e2e": "npm run update-webdriver && protractor $SUITE",
"spellcheck": "cspell '{src,e2e,projects}/**/*.ts'", "spellcheck": "cspell '{src,e2e,projects}/**/*.ts'",
"inspect.bundle": "ng build app --prod --stats-json && npx webpack-bundle-analyzer dist/app/stats.json" "inspect.bundle": "ng build content-ce --prod --stats-json && npx webpack-bundle-analyzer dist/content-ce/stats.json"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {

View File

@ -26,7 +26,7 @@ module.exports = function (config) {
logLevel: config.LOG_INFO, logLevel: config.LOG_INFO,
autoWatch: true, autoWatch: true,
browsers: ['Chrome'], browsers: ['Chrome'],
singleRun: false, singleRun: true,
restartOnFileChange: true restartOnFileChange: true
}); });
}; };

View File

@ -26,7 +26,7 @@ module.exports = function (config) {
logLevel: config.LOG_INFO, logLevel: config.LOG_INFO,
autoWatch: true, autoWatch: true,
browsers: ['Chrome'], browsers: ['Chrome'],
singleRun: false, singleRun: true,
restartOnFileChange: true restartOnFileChange: true
}); });
}; };

View File

@ -27,7 +27,7 @@ module.exports = function (config) {
logLevel: config.LOG_INFO, logLevel: config.LOG_INFO,
autoWatch: true, autoWatch: true,
browsers: ['Chrome'], browsers: ['Chrome'],
singleRun: false, singleRun: true,
restartOnFileChange: true restartOnFileChange: true
}); });
}; };

View File

@ -30,6 +30,6 @@ module.exports = function(config) {
logLevel: config.LOG_INFO, logLevel: config.LOG_INFO,
autoWatch: true, autoWatch: true,
browsers: ['Chrome'], browsers: ['Chrome'],
singleRun: false singleRun: true
}); });
}; };