mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2147] test upgrade 2.0.0 (#2902)
* add integration 2.0.0 test * update readme * add integration test in travis * restore tsconfig.dev * fix test script travis call * improve script * fix npm run test
This commit is contained in:
@@ -267,10 +267,14 @@ For development environment configuration please refer to [project docs](../demo
|
||||
| -v or --version | the version of the components to check |
|
||||
|
||||
|
||||
# npm-add-pkg.sh
|
||||
|
||||
***npm-add-pkg.sh*** check the bundles in the package npm are present
|
||||
|
||||
Add a package across all the pacakge json in the project
|
||||
|
||||
## Options
|
||||
|
||||
| Option | Description |
|
||||
| --- | --- |
|
||||
| -h or --help | show the help |
|
||||
@@ -279,35 +283,59 @@ Add a package across all the pacakge json in the project
|
||||
|
||||
* Add a package in the project
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
./npm-add-pkg.sh --save-dev NPM_NAME
|
||||
```
|
||||
|
||||
# extract-langs.sh
|
||||
|
||||
***extract-langs.sh***
|
||||
|
||||
Extract the i18n files from the repo and create a zip
|
||||
|
||||
## Options
|
||||
|
||||
| Option | Description |
|
||||
| --- | --- |
|
||||
| -h or --help | show the help |
|
||||
| --output or o | output folder otherwise will be 18n |
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
./extract-langs.sh
|
||||
```
|
||||
|
||||
# docker-publish.sh
|
||||
|
||||
***docker-publish.sh***
|
||||
|
||||
publish doker images in the selected repository
|
||||
|
||||
## Options
|
||||
|
||||
| Option | Description |
|
||||
| --- | --- |
|
||||
| -u or --username | username |
|
||||
| -p or --password | password |
|
||||
| -t or --tags | tags |
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
./docker-publish.sh
|
||||
```
|
||||
|
||||
# test-e2e-bc.sh
|
||||
|
||||
***test-e2e-bc.sh***
|
||||
|
||||
This script test that the update from 2.0.0 to 2.x.x is still smooth
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
./test-e2e-bc
|
||||
```
|
23
scripts/test-e2e-bc.sh
Executable file
23
scripts/test-e2e-bc.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
rm -rf "$DIR/../lib/node_modules/@angular"
|
||||
cd "$DIR/../integration/base_ver_2_app"
|
||||
|
||||
ADF_VERSION=$(npm view @alfresco/adf-core version)
|
||||
ANGULAR_VERSION="5.1.1"
|
||||
MATERIAL_VERSION="5.0.1"
|
||||
|
||||
npm install
|
||||
|
||||
#Use last js-api
|
||||
npm install --save alfresco-js-api@alpha
|
||||
|
||||
#New documented dependency
|
||||
npm install --save-exact --save @alfresco/adf-content-services@${ADF_VERSION} @alfresco/adf-core@${ADF_VERSION} @alfresco/adf-insights@${ADF_VERSION} @alfresco/adf-process-services@${ADF_VERSION}
|
||||
npm install --save-exact --save-dev @angular-devkit/core@0.0.28 @angular/compiler-cli@${ANGULAR_VERSION} typescript@2.6.2
|
||||
npm install --save @mat-datetimepicker/core @mat-datetimepicker/moment
|
||||
npm install --save-exact --save @angular/animations@${ANGULAR_VERSION} @angular/common@${ANGULAR_VERSION} @angular/compiler@${ANGULAR_VERSION} @angular/core@${ANGULAR_VERSION} @angular/platform-browser@${ANGULAR_VERSION} @angular/router@${ANGULAR_VERSION} @angular/flex-layout@2.0.0-beta.12 @angular/forms@${ANGULAR_VERSION} @angular/forms@${ANGULAR_VERSION} @angular/http@${ANGULAR_VERSION} @angular/platform-browser-dynamic@${ANGULAR_VERSION}
|
||||
npm install --save-exact --save @angular/cdk@${MATERIAL_VERSION} @angular/material@${MATERIAL_VERSION}
|
||||
|
||||
npm run e2e
|
Reference in New Issue
Block a user