Travis cache (#3972)

* Use name instead of env

* Enable cache dist

* enable only master and dev

* rename e2e lib

* add nx and smart build

* disable packaging and create demo shell stages

* use same name

* Enable affected e2e for core and process

* Enable affected libs check on all the e2e

* fix e2e condition

* Enable unit tests

* Manage case deps not present

* add name typo

* add affected folder to check e2e

* change an e2e test

* remove branch typo

* Update .travis.yml
This commit is contained in:
Maurizio Vitale
2018-11-19 13:28:02 +00:00
committed by Eugenio Romano
parent 2fcec4f235
commit f0dff4d011
21 changed files with 864 additions and 204 deletions

24
scripts/build-insights.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/..
echo "====== Insights ======"
echo "====== Build ======"
npm run ng-packagr -- -p ./lib/insights/ || exit 1
echo "====== Build style ======"
node ./lib/config/bundle-insights-scss.js || exit 1
echo "====== Copy i18n ======"
mkdir -p ./lib/dist/insights/bundles/assets/adf-insights/i18n
cp -R ./lib/insights/i18n/* ./lib/dist/insights/bundles/assets/adf-insights/i18n
echo "====== Copy assets ======"
cp -R ./lib/insights/assets/* ./lib/dist/insights/bundles/assets
echo "====== Move to node_modules ======"
rm -rf ./node_modules/@alfresco/adf-insights/ && \
mkdir -p ./node_modules/@alfresco/adf-insights/ && \
cp -R ./lib/dist/insights/* ./node_modules/@alfresco/adf-insights/