#!/usr/bin/env bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 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; fi ./scripts/npm-build-all.sh || exit 1; else ./scripts/update-version.sh -gnu -alpha || exit 1; 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