[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
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
- stage: Quality and Unit tests
name: 'Unit tests: aca-shared'
script: npm ci && ng test aca-shared --watch=false
script: npm ci && ng test aca-shared
cache: false
- stage: Quality and Unit tests
name: 'Unit tests: aca-settings'
script: npm ci && ng test aca-settings --watch=false
script: npm ci && ng test aca-settings
cache: false
- stage: Quality and Unit tests
name: 'Unit tests: ACA'
script:
- npm ci
- ng test app --watch=false
- ng test content-ce
cache: false
- stage: e2e
@ -204,14 +204,14 @@ jobs:
- stage: 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
name: Release Tag
script: ./scripts/travis/release/git-tag.sh
- 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
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,
"newProjectRoot": "projects",
"projects": {
"app": {
"content-ce": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
@ -179,20 +179,20 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "app:build",
"browserTarget": "content-ce:build",
"port": 4200,
"host": "0.0.0.0",
"proxyConfig": "src/proxy.conf.js"
},
"configurations": {
"production": {
"browserTarget": "app:build:production"
"browserTarget": "content-ce:build:production"
},
"e2e": {
"browserTarget": "app:build:e2e"
"browserTarget": "content-ce:build:e2e"
},
"release": {
"browserTarget": "app:build:release"
"browserTarget": "content-ce:build:release"
}
}
},
@ -200,7 +200,7 @@
"builder": "@angular-custom-builders/lite-serve:dist-serve",
"options": {
"publicHost": "http://localhost:4200",
"browserTarget": "app:build"
"browserTarget": "content-ce:build"
},
"configurations": {
"standalone": {
@ -211,7 +211,7 @@
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "app:build"
"browserTarget": "content-ce:build"
}
},
"test": {
@ -292,11 +292,11 @@
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "./protractor.conf.js",
"devServerTarget": "app:serve"
"devServerTarget": "content-ce:serve"
},
"configurations": {
"production": {
"devServerTarget": "app:serve:production"
"devServerTarget": "content-ce:serve:production"
}
}
},
@ -305,7 +305,7 @@
"options": {
"protractorConfig": "protractor.conf.js",
"webdriverUpdate": false,
"devServerTarget": "app:lite-serve",
"devServerTarget": "content-ce:lite-serve",
"invertGrep": true
}
},
@ -490,7 +490,7 @@
}
}
},
"defaultProject": "app",
"defaultProject": "content-ce",
"schematics": {
"@schematics/angular:component": {
"prefix": "aca",

View File

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

View File

@ -11,18 +11,18 @@
"prestart": "mkdir -p ./src/.tmp && npm run assemble-app-config && npm run validate-app-config",
"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",
"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",
"build": "ng build",
"build.release": "npm run build.app -- --configuration=production,release",
"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",
"update-webdriver": "./scripts/update-webdriver.sh",
"e2e.typecheck": "tsc -p ./e2e/tsconfig.e2e.typecheck.json",
"e2e": "npm run update-webdriver && protractor $SUITE",
"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,
"dependencies": {

View File

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

View File

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

View File

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

View File

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