Skip to content

Commit

Permalink
Merge pull request #163 from notmessenger/travis-scripts
Browse files Browse the repository at this point in the history
Update .travis/ scripts
  • Loading branch information
notmessenger committed Mar 19, 2018
2 parents 5e273d5 + a1ef144 commit 61ed968
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .travis/maybe-bump-version.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/bash

if [ "$TRAVIS_NODE_VERSION" != "8.1.2" ]
if [[ ! "${PUBLISH_NODE_VERSION:-8.1.2}" =~ ^$TRAVIS_NODE_VERSION ]]
then
echo "Skipping version bump for TRAVIS_NODE_VERSION ${TRAVIS_NODE_VERSION}"
echo "Skipping pr-bumper bump step for TRAVIS_NODE_VERSION [${TRAVIS_NODE_VERSION}]"
exit 0
fi

if [ "$EMBER_TRY_SCENARIO" != "ember-default" ]
then
echo "Skipping version bump for EMBER_TRY_SCENARIO ${EMBER_TRY_SCENARIO}"
echo "Skipping pr-bumper bump step for EMBER_TRY_SCENARIO [${EMBER_TRY_SCENARIO}]"
exit 0
fi

Expand Down
8 changes: 4 additions & 4 deletions .travis/maybe-publish-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ source $(npm root -g)/pr-bumper/.travis/is-bump-commit.sh

if isBumpCommit
then
echo "Skipping coverage publish for version bump commit"
echo "Skipping pr-bumper coverage publish step for version bump commit"
exit 0
fi

if [ "$TRAVIS_NODE_VERSION" != "8.1.2" ]
if [[ ! "${PUBLISH_NODE_VERSION:-8.1.2}" =~ ^$TRAVIS_NODE_VERSION ]]
then
echo "Skipping coverage publish for TRAVIS_NODE_VERSION ${TRAVIS_NODE_VERSION}"
echo "Skipping pr-bumper coverage publish step for TRAVIS_NODE_VERSION [${TRAVIS_NODE_VERSION}]"
exit 0
fi

if [ "$EMBER_TRY_SCENARIO" != "ember-default" ]
then
echo "Skipping coverage publish for EMBER_TRY_SCENARIO ${EMBER_TRY_SCENARIO}"
echo "Skipping pr-bumper coverage publish step for EMBER_TRY_SCENARIO [${EMBER_TRY_SCENARIO}]"
exit 0
fi

Expand Down
6 changes: 3 additions & 3 deletions .travis/maybe-publish-gh-pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source $(npm root -g)/pr-bumper/.travis/is-bump-commit.sh

if isBumpCommit
then
echo "Skipping gh-pages publish for version bump commit"
echo "Skipping pr-bumper gh-pages publish step for version bump commit"
exit 0
fi

Expand All @@ -14,7 +14,7 @@ TMP_GH_PAGES_DIR=.gh-pages-demo
# We only want to deploy to gh-pages from "master"
if [ "${TRAVIS_BRANCH}" != "master" ]
then
echo "Skipping gh-pages publish for branch ${TRAVIS_BRANCH}"
echo "Skipping pr-bumper gh-pages publish step for branch [${TRAVIS_BRANCH}]"
exit 0
fi

Expand All @@ -25,5 +25,5 @@ git checkout gh-pages
git rm -rf *
cp -r ../dist/* .
git add --all
git commit -m "[ci skip] Automated gh-pages commit of ${VERSION}"
git commit -m "[pr-bumper] Automated gh-pages commit of [${VERSION}]"
git push origin gh-pages > /dev/null 2>&1

0 comments on commit 61ed968

Please sign in to comment.