testing dev build

This commit is contained in:
Yotam Mann 2017-08-30 11:23:11 -04:00
parent eca71ac938
commit 0fe0bcf915
2 changed files with 5 additions and 5 deletions

View file

@ -20,20 +20,20 @@ cd $BUILD_DIR
git checkout gh-pages
# generate a new build
gulp build
# gulp build
# push to the appropriate location
if [ "$TRAVIS" = "true" ]; then
if [ "$TRAVIS_BRANCH" = "travis" ]; then
if [ "$TRAVIS_BRANCH" = "dev" ]; then
# dev builds go into the dev folder
mkdir $BUILD_DIR/test/
cp -rf $TONE_DIR/build/{Tone.js,Tone.min.js} $BUILD_DIR/test/
cp $TONE_DIR/build/{Tone.js,Tone.min.js} $BUILD_DIR/test/
elif [ "$TRAVIS_BRANCH" = "master" ]; then
# master builds are on the root level folder
cp -rf $TONE_DIR/build/{Tone.js,Tone.min.js} $BUILD_DIR/
cp $TONE_DIR/build/{Tone.js,Tone.min.js} $BUILD_DIR/
fi
fi

View file

@ -6,7 +6,7 @@ if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
sh push_build.sh
# update the site
sh update_site.sh
# sh update_site.sh
fi