mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
* remove unused script refactor the alpha build to use the JS-API in the branch all the time * use alpha build number * rewire maxretry * Delete check-js-api-version.js
34 lines
809 B
Bash
Executable File
34 lines
809 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
|
|
|
|
npm install
|
|
fi;
|
|
|
|
./scripts/build/build-all-lib.sh
|
|
|
|
echo "====== Build Demo shell for production ====="
|
|
NODE_OPTIONS=--max_old_space_size=8192 nx build demoshell --prod
|