mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
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:
committed by
Eugenio Romano
parent
2fcec4f235
commit
f0dff4d011
52
scripts/smart-build.sh
Executable file
52
scripts/smart-build.sh
Executable file
@@ -0,0 +1,52 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
affected="$(./scripts/affected-libs.sh -b "$TRAVIS_BRANCH")"
|
||||
libs=(`echo $affected | sed 's/^$/\n/g'`)
|
||||
|
||||
#core
|
||||
for i in "${libs[@]}"
|
||||
do
|
||||
if [ "$i" == "core$" ] ; then
|
||||
./scripts/build-core.sh
|
||||
fi
|
||||
done
|
||||
|
||||
#content-services
|
||||
for i in "${libs[@]}"
|
||||
do
|
||||
if [ "$i" == "content-services$" ] ; then
|
||||
./scripts/build-content-services.sh
|
||||
fi
|
||||
done
|
||||
|
||||
#process-services
|
||||
for i in "${libs[@]}"
|
||||
do
|
||||
if [ "$i" == "process-services$" ] ; then
|
||||
./scripts/build-process-services.sh
|
||||
fi
|
||||
done
|
||||
|
||||
#process-services-cloud
|
||||
for i in "${libs[@]}"
|
||||
do
|
||||
if [ "$i" == "process-services-cloud$" ] ; then
|
||||
./scripts/build-process-services-cloud.sh
|
||||
fi
|
||||
done
|
||||
|
||||
#insights
|
||||
for i in "${libs[@]}"
|
||||
do
|
||||
if [ "$i" == "insights$" ] ; then
|
||||
./scripts/build-insights.sh
|
||||
fi
|
||||
done
|
||||
|
||||
#extensions
|
||||
for i in "${libs[@]}"
|
||||
do
|
||||
if [ "$i" == "extensions$" ] ; then
|
||||
./scripts/build-extensions.sh
|
||||
fi
|
||||
done
|
Reference in New Issue
Block a user