test build

This commit is contained in:
Mario Romano 2016-07-08 17:29:44 +01:00
parent d535748488
commit a24c3caa44

View File

@ -17,8 +17,6 @@ before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- (cd ng2-components/ng2-alfresco-core; npm install; npm link);(cd ng2-components/ng2-alfresco-datatable; npm link ng2-alfresco-core; npm install; npm link)
env:
matrix:
- MODULE=ng2-alfresco-core
@ -30,7 +28,21 @@ env:
- MODULE=ng2-alfresco-viewer
before_script:
- cd ng2-components/$MODULE; npm install; npm run travis
- if ([ "$MODULE" != "ng2-alfresco-core" ] && [ "$MODULE" != "ng2-alfresco-viewer" ]); then
(cd ng2-components/ng2-alfresco-core; npm install; npm link);
fi
- if [[ "$MODULE" == "ng2-alfresco-documentlist" ]]; then
(cd ng2-components/ng2-alfresco-datatable;npm link ng2-alfresco-core; npm install; npm link);
fi
- cd ng2-components/$MODULE;
- if ([ "$MODULE" != "ng2-alfresco-core" ] && [ "$MODULE" != "ng2-alfresco-viewer" ]); then
npm link ng2-alfresco-core;
fi
- if [[ "$MODULE" == "ng2-alfresco-documentlist" ]]; then
npm link ng2-alfresco-datatable;
fi
- npm install;
- npm run travis
- ls -ltrh ./node_modules/
script: npm run test
# Send coverage data to Coveralls