mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
Clean up Travis stuff MOAR
This commit is contained in:
23
travis/test.sh
Normal file
23
travis/test.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# For revert branches, do nothing
|
||||
if [[ "$TRAVIS_BRANCH" == revert-* ]]; then
|
||||
echo -e "\e[36m\e[1mTest triggered for reversion branch \"${TRAVIS_BRANCH}\" - doing nothing."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# For PRs
|
||||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||
echo -e "\e[36m\e[1mTest triggered for PR #${TRAVIS_PULL_REQUEST}."
|
||||
fi
|
||||
|
||||
# Figure out the source of the test
|
||||
if [ -n "$TRAVIS_TAG" ]; then
|
||||
echo -e "\e[36m\e[1mTest triggered for tag \"${TRAVIS_TAG}\"."
|
||||
else
|
||||
echo -e "\e[36m\e[1mTest triggered for branch \"${TRAVIS_BRANCH}\"."
|
||||
fi
|
||||
|
||||
# Run the tests
|
||||
npm test
|
||||
Reference in New Issue
Block a user