add module to ci

This commit is contained in:
Mario Romano 2016-07-18 19:15:24 +01:00
parent 60106239b7
commit b41c81f4a2
3 changed files with 6 additions and 3 deletions

View File

@ -32,14 +32,14 @@ before_script:
- if ([ "$MODULE" != "ng2-alfresco-core" ] && [ "$MODULE" != "ng2-alfresco-viewer" ]); then - if ([ "$MODULE" != "ng2-alfresco-core" ] && [ "$MODULE" != "ng2-alfresco-viewer" ]); then
(cd ng2-components/ng2-alfresco-core; npm install; npm link); (cd ng2-components/ng2-alfresco-core; npm install; npm link);
fi fi
- if [[ "$MODULE" == "ng2-alfresco-documentlist" ]]; then - if ([ "$MODULE" == "ng2-alfresco-documentlist" ] || [ "$MODULE" == "ng2-alfresco-webscript" ]); then
(cd ng2-components/ng2-alfresco-datatable;npm link ng2-alfresco-core; npm install; npm link); (cd ng2-components/ng2-alfresco-datatable;npm link ng2-alfresco-core; npm install; npm link);
fi fi
- cd ng2-components/$MODULE; - cd ng2-components/$MODULE;
- if ([ "$MODULE" != "ng2-alfresco-core" ] && [ "$MODULE" != "ng2-alfresco-viewer" ]); then - if ([ "$MODULE" != "ng2-alfresco-core" ] && [ "$MODULE" != "ng2-alfresco-viewer" ]); then
npm link ng2-alfresco-core; npm link ng2-alfresco-core;
fi fi
- if [[ "$MODULE" == "ng2-alfresco-documentlist" ]]; then - if ([ "$MODULE" == "ng2-alfresco-documentlist" ] || [ "$MODULE" == "ng2-alfresco-webscript" ]); then
npm link ng2-alfresco-datatable; npm link ng2-alfresco-datatable;
fi fi
- npm install; - npm install;

View File

@ -14,6 +14,7 @@ environment:
- COMPONENT_NAME: ng2-alfresco-search - COMPONENT_NAME: ng2-alfresco-search
- COMPONENT_NAME: ng2-alfresco-upload - COMPONENT_NAME: ng2-alfresco-upload
- COMPONENT_NAME: ng2-alfresco-viewer - COMPONENT_NAME: ng2-alfresco-viewer
- COMPONENT_NAME: ng2-alfresco-webscript
# Install scripts. (runs after repo cloning) # Install scripts. (runs after repo cloning)
install: install:
@ -22,9 +23,11 @@ install:
# install module # install module
- IF %COMPONENT_NAME% NEQ ng2-alfresco-core (cd ng2-components/ng2-alfresco-core && npm install && npm link && cd ../../) - IF %COMPONENT_NAME% NEQ ng2-alfresco-core (cd ng2-components/ng2-alfresco-core && npm install && npm link && cd ../../)
- IF %COMPONENT_NAME% EQU ng2-alfresco-documentlist (cd ng2-components/ng2-alfresco-datatable && npm link ng2-alfresco-core && npm install && npm link && cd ../../) - IF %COMPONENT_NAME% EQU ng2-alfresco-documentlist (cd ng2-components/ng2-alfresco-datatable && npm link ng2-alfresco-core && npm install && npm link && cd ../../)
- IF %COMPONENT_NAME% EQU ng2-alfresco-webscript (cd ng2-components/ng2-alfresco-datatable && npm link ng2-alfresco-core && npm install && npm link && cd ../../)
- cd ng2-components/%COMPONENT_NAME% - cd ng2-components/%COMPONENT_NAME%
- IF %COMPONENT_NAME% NEQ ng2-alfresco-core (npm link ng2-alfresco-core) - IF %COMPONENT_NAME% NEQ ng2-alfresco-core (npm link ng2-alfresco-core)
- IF %COMPONENT_NAME% EQU ng2-alfresco-documentlist (npm link ng2-alfresco-datatable) - IF %COMPONENT_NAME% EQU ng2-alfresco-documentlist (npm link ng2-alfresco-datatable)
- IF %COMPONENT_NAME% EQU ng2-alfresco-webscript (npm link ng2-alfresco-datatable)
- npm install - npm install
# Post-install test scripts. # Post-install test scripts.

View File

@ -1,6 +1,6 @@
{ {
"name": "ng2-alfresco-webscript", "name": "ng2-alfresco-webscript",
"description": "webscript executor", "description": "Alfresco webscript executor",
"version": "0.1.0", "version": "0.1.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "./dist/index.js", "main": "./dist/index.js",