release update commands pipeline

This commit is contained in:
Eugenio Romano
2019-08-29 12:01:49 +01:00
parent cdfae95c2a
commit 43df299096
12 changed files with 39 additions and 456 deletions

View File

@@ -6,26 +6,28 @@ cd $DIR/../../../
rm -rf tmp && mkdir tmp;
./scripts/update-version.sh -gnu -alpha || exit 1;
if [[ $TRAVIS_PULL_REQUEST == "false" ]];
then
if [[ $TRAVIS_BRANCH == "development" ]];
then
./scripts/update-version.sh -gnu -alpha || exit 1;
#TODO remove when we are going to use the new about
./scripts/update-version.sh -gnu -nextalpha || exit 1;
fi
node ./scripts/pre-publish.js
npm install
./scripts/npm-build-all.sh || exit 1;
else
./scripts/update-version.sh -gnu -alpha || exit 1;
npm install @alfresco/adf-cli@alpha
./node_modules/@alfresco/adf-cli/bin/adf-cli update-version --alpha --pathPackage "$(pwd)"
npm install;
./scripts/lint.sh || exit 1;
./scripts/smart-build.sh -b $TRAVIS_BRANCH -gnu || exit 1;
fi;
echo "====== Build Demo shell dist ====="
npm run build:dist || exit 1;
echo "====== License Check ====="
npm run license-checker

View File

@@ -4,12 +4,6 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../../../
#if [ "$TRAVIS_PULL_REQUEST" != "false" ];
#then
node ./scripts/travis/deploy/move-dist-folder.js --base-href $TRAVIS_BUILD_NUMBER && (./scripts/travis/deploy/pr-publish.sh -n $TRAVIS_BUILD_NUMBER -r $REPO_DOCKER -u $USERNAME_DOCKER -p $PASSWORD_DOCKER || exit 1);
#fi;
#if [ "$TRAVIS_PULL_REQUEST" != "false" ];
#then
(node --no-deprecation ./scripts/travis/deploy/pr-deploy.js -n $TRAVIS_BUILD_NUMBER -u $RANCHER_TOKEN -p $RANCHER_SECRET -s $REPO_RANCHER --image "docker:$REPO_DOCKER/adf/demo-shell:$TRAVIS_BUILD_NUMBER" --env $ENVIRONMENT_NAME -r $ENVIRONMENT_URL || exit 1);
#fi;

View File

@@ -4,9 +4,4 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../../../
if [[ $TRAVIS_BRANCH == "development" ]];
then
./scripts/update-version.sh -gnu -nextalpha || exit 1;
fi
./lib/dist/cli/bin/adf-cli npm-publish --npmRegistry $NPM_REGISTRY_ADDRESS --tokenRegistry $NPM_REGISTRY_TOKEN --tag $TAG_NPM --pathProject "$(pwd)"