Improve build stages (#3744)

* travis precache

* rb change

* remove ut

* add cache warm up

* Prepare cache fix

* add test

* use env variabble to tag

* use env to label stages

* move lint step at start

* use dist for e2e

* upload dist in alfresco

* modify permissions

* travis script node

* remove polyfills

* revert some changes

* fix demo shell run test

* solve download

* revert debatable gallery change
This commit is contained in:
Eugenio Romano
2018-09-05 12:40:03 +01:00
committed by GitHub
parent c0acc53eb9
commit c6f56a2c2a
37 changed files with 10383 additions and 1450 deletions

View File

@@ -44,35 +44,29 @@ describe('Comment component for Processes', () => {
hostBpm: TestConfig.adf.url
});
let apps = new AppsActions();
let users = new UsersActions();
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
user = await users.createTenantAndUser(this.alfrescoJsApi);
tenantId = user.tenantId;
await this.alfrescoJsApi.login(user.email, user.password);
let importedApp = await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location);
appId = importedApp.id;
let processWithComment = await apps.startProcess(this.alfrescoJsApi, 'Task App', 'Comment APS');
processInstanceId = processWithComment.id;
await loginPage.loginToProcessServicesUsingUserModel(user);
done();
});
beforeEach(async(done) => {
let apps = new AppsActions();
let users = new UsersActions();
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
user = await users.createTenantAndUser(this.alfrescoJsApi);
tenantId = user.tenantId;
await this.alfrescoJsApi.login(user.email, user.password);
let importedApp = await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location);
appId = importedApp.id;
let processWithComment = await apps.startProcess(this.alfrescoJsApi, 'Task App', 'Comment APS');
processInstanceId = processWithComment.id;
await loginPage.loginToProcessServicesUsingUserModel(user);
done();
});
afterEach(async(done) => {
await loginPage.loginToProcessServicesUsingUserModel(user);
afterAll(async(done) => {
await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appId);
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);

View File

@@ -53,10 +53,6 @@ describe('Comment component for Processes', () => {
hostBpm: TestConfig.adf.url
});
done();
});
beforeEach(async(done) => {
let apps = new AppsActions();
let users = new UsersActions();
@@ -78,9 +74,7 @@ describe('Comment component for Processes', () => {
done();
});
afterEach(async(done) => {
await loginPage.loginToProcessServicesUsingUserModel(user);
afterAll(async(done) => {
await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appId);
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);