mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
Add as group suffix the travis build number (#5072)
This commit is contained in:
parent
8ee3e25caf
commit
b2966bc6f5
@ -17,6 +17,7 @@
|
||||
|
||||
import { ApiService } from '../api.service';
|
||||
import { StringUtil } from '../../utils/string.util';
|
||||
import { browser } from 'protractor';
|
||||
|
||||
export class GroupIdentityService {
|
||||
|
||||
@ -40,7 +41,7 @@ export class GroupIdentityService {
|
||||
const path = '/groups';
|
||||
const method = 'POST';
|
||||
const queryParams = {}, postBody = {
|
||||
name: groupName + 'TestGroup'
|
||||
name: `${groupName}-${browser.params.groupSuffix}`
|
||||
};
|
||||
const data = await this.api.performIdentityOperation(path, method, queryParams, postBody);
|
||||
return data;
|
||||
|
@ -13,6 +13,7 @@ const projectRoot = path.resolve(__dirname);
|
||||
const width = 1366, height = 768;
|
||||
|
||||
let ENV_FILE = process.env.ENV_FILE;
|
||||
let GROUP_SUFFIX = process.env.PREFIX;
|
||||
|
||||
if (ENV_FILE) {
|
||||
require('dotenv').config({ path: ENV_FILE });
|
||||
@ -101,6 +102,7 @@ exports.config = {
|
||||
params: {
|
||||
testConfig: TestConfig,
|
||||
config: TestConfig.appConfig,
|
||||
groupSuffix: GROUP_SUFFIX,
|
||||
identityAdmin: TestConfig.identityAdmin,
|
||||
identityUser: TestConfig.identityUser,
|
||||
rootPath: __dirname
|
||||
|
@ -132,6 +132,11 @@ set_env(){
|
||||
export ENV_FILE=$1
|
||||
}
|
||||
|
||||
set_prefix(){
|
||||
PREFIX=$1
|
||||
export PREFIX=$PREFIX
|
||||
}
|
||||
|
||||
lint(){
|
||||
EXECLINT=true
|
||||
}
|
||||
@ -174,6 +179,7 @@ while [[ $1 == -* ]]; do
|
||||
-env|--env) set_env $2; shift 2;;
|
||||
-dev|--dev) set_development; shift;;
|
||||
-s|--specs) set_specs $2; shift 2;;
|
||||
-prefix|--prefix) set_prefix $2; shift 2;;
|
||||
-db|--debug) debug; shift;;
|
||||
-ud|--use-dist) lite_server; shift;;
|
||||
-save) set_save_screenshot; shift;;
|
||||
|
@ -11,7 +11,7 @@ CONTEXT_ENV="process-services-cloud"
|
||||
AFFECTED_LIBS="$(./scripts/affected-libs.sh -gnu -b $TRAVIS_BRANCH)";
|
||||
AFFECTED_E2E="$(./scripts/git-util/affected-folder.sh -b $TRAVIS_BRANCH -f "e2e/$CONTEXT_ENV")";
|
||||
|
||||
RUN_E2E=$(echo ./scripts/test-e2e-lib.sh -host http://localhost:4200 -proxy "$E2E_HOST_BPM" -u "$E2E_USERNAME" -p "$E2E_PASSWORD" -e "$E2E_EMAIL" -host_sso "$E2E_HOST_SSO" -host_bpm "$E2E_HOST_BPM" -host_identity "$E2E_HOST_IDENTITY" -identity_admin_email "$E2E_ADMIN_EMAIL_IDENTITY" -identity_admin_password "$E2E_ADMIN_PASSWORD_IDENTITY" --use-dist -gnu )
|
||||
RUN_E2E=$(echo ./scripts/test-e2e-lib.sh -host http://localhost:4200 -proxy "$E2E_HOST_BPM" -u "$E2E_USERNAME" -p "$E2E_PASSWORD" -e "$E2E_EMAIL" -host_sso "$E2E_HOST_SSO" -host_bpm "$E2E_HOST_BPM" -host_identity "$E2E_HOST_IDENTITY" -identity_admin_email "$E2E_ADMIN_EMAIL_IDENTITY" -identity_admin_password "$E2E_ADMIN_PASSWORD_IDENTITY" -prefix $TRAVIS_BUILD_NUMBER --use-dist -gnu )
|
||||
|
||||
if [[ $AFFECTED_LIBS =~ "testing" || $AFFECTED_LIBS =~ "$CONTEXT_ENV" || $TRAVIS_PULL_REQUEST == "false" ]];
|
||||
then
|
||||
|
Loading…
x
Reference in New Issue
Block a user