Revise Travis scripts, and use only Node 8

This commit is contained in:
Schuyler Cebulskie
2017-06-02 00:12:27 -04:00
parent a2520efa1a
commit 45cf05746d
3 changed files with 10 additions and 24 deletions

View File

@@ -3,11 +3,6 @@
set -e
function build {
npm run docs
VERSIONED=false npm run webpack
}
# For revert branches, do nothing
if [[ "$TRAVIS_BRANCH" == revert-* ]]; then
echo -e "\e[36m\e[1mBuild triggered for reversion branch \"${TRAVIS_BRANCH}\" - doing nothing."
@@ -31,13 +26,16 @@ else
SOURCE_TYPE="branch"
fi
# For Node != 6, do nothing
if [ "$TRAVIS_NODE_VERSION" != "6" ]; then
# For Node != 8, do nothing
if [ "$TRAVIS_NODE_VERSION" != "8" ]; then
echo -e "\e[36m\e[1mBuild triggered with Node v${TRAVIS_NODE_VERSION} - doing nothing."
exit 0
fi
build
# Run the build
npm run docs
VERSIONED=false npm run webpack
# Initialise some useful variables
REPO=`git config remote.origin.url`