mirror of
https://github.com/danbulant/discord.js
synced 2026-06-10 02:02:40 +00:00
Tweak Travis output
This commit is contained in:
parent
bcbd187223
commit
5fd10ef63e
1 changed files with 10 additions and 8 deletions
|
|
@ -14,25 +14,27 @@ function build {
|
||||||
VERSIONED=false npm run web-dist
|
VERSIONED=false npm run web-dist
|
||||||
}
|
}
|
||||||
|
|
||||||
# For PRs or Node 7, only run tests
|
# Only run tests for PRs
|
||||||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||||
echo -e "\e[36m\e[4m\e[1mThis is a PR build for #$TRAVIS_PULL_REQUEST - only running tests"
|
echo -e "\e[36m\e[1mThis is a PR build for #$TRAVIS_PULL_REQUEST - only running tests"
|
||||||
tests
|
|
||||||
fi
|
|
||||||
if [ "$TRAVIS_NODE_VERSION" != "6" ]; then
|
|
||||||
echo -e "\e[36m\e[4m\e[1mThis is a Node v$TRAVIS_NODE_VERSION build - only running tests"
|
|
||||||
tests
|
tests
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Figure out the source of the build
|
# Figure out the source of the build
|
||||||
if [ -n "$TRAVIS_TAG" ]; then
|
if [ -n "$TRAVIS_TAG" ]; then
|
||||||
echo -e "\e[36m\e[4m\e[1mThis is a tag build for $TRAVIS_TAG"
|
echo -e "\e[36m\e[1mThis is a tag build for $TRAVIS_TAG"
|
||||||
SOURCE=$TRAVIS_TAG
|
SOURCE=$TRAVIS_TAG
|
||||||
else
|
else
|
||||||
echo -e "\e[36m\e[4m\e[1mThis is a branch build for $TRAVIS_BRANCH"
|
echo -e "\e[36m\e[1mThis is a branch build for $TRAVIS_BRANCH"
|
||||||
SOURCE=$TRAVIS_BRANCH
|
SOURCE=$TRAVIS_BRANCH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Only run tests for Node versions other than 6
|
||||||
|
if [ "$TRAVIS_NODE_VERSION" != "6" ]; then
|
||||||
|
echo -e "\e[36m\e[1mThis is a Node v$TRAVIS_NODE_VERSION build - only running tests"
|
||||||
|
tests
|
||||||
|
fi
|
||||||
|
|
||||||
build
|
build
|
||||||
|
|
||||||
# Initialise some useful variables
|
# Initialise some useful variables
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue