mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* [AAE-4608] Use smartrunner version 2 * Fix npm installing and do not depend on develop cache * Add Travis workspaces the simplest way * Add missing dependencies * Remove unnecessary npm install on lint * Fix travis indentation * Fix e2e missing adf packages * Trying to fix Travis * Remove debug information * Use Travis workspaces for smartrunner and built artefacts caching instead of S3 * Implement nuclear caching for node_modules * Quiet snyk running, since the log length kills Travis * Maybe with -q * Quieting snyk * Why displaying the added packages?????? * Fix S3 persister/retriever scripts * Restore back parallel build and lint, to gain 10 minutes
32 lines
792 B
Bash
Executable File
32 lines
792 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
cd $DIR/../../../
|
|
|
|
rm -rf tmp && mkdir tmp;
|
|
|
|
npx @alfresco/adf-cli@alpha update-commit-sha --pointer "HEAD" --pathPackage "$(pwd)"
|
|
|
|
if [ $TRAVIS_EVENT_TYPE == "push" ] || [ $TRAVIS_EVENT_TYPE == "cron" ]
|
|
then
|
|
if [[ $TRAVIS_BRANCH == "develop" ]];
|
|
then
|
|
NEXT_VERSION=-nextalpha
|
|
./scripts/update-version.sh -gnu $NEXT_VERSION || exit 1;
|
|
fi
|
|
|
|
if [[ $TRAVIS_EVENT_TYPE == "cron" ]];
|
|
then
|
|
NEXT_VERSION=-nextbeta
|
|
./scripts/update-version.sh -gnu $NEXT_VERSION || exit 1;
|
|
fi
|
|
|
|
node ./scripts/pre-publish.js
|
|
fi;
|
|
|
|
./scripts/build/build-all-lib.sh
|
|
|
|
echo "====== Build Demo shell for production ====="
|
|
NODE_OPTIONS=--max_old_space_size=8192 nx build demoshell --prod
|