Files
discord.js/travis/test.sh
Crawl e8451561ed ci: github actions (#3442)
* feat: eslint action

* refactor: actions v2

* fix: set +x for entrypoint

* ci: integrate docs

* fix: give it a nice name

* ci: publish docs

* ci: fix yaml key error

* ci: fix executable

* ci: use normal sh shebang

* ci: move into the workspace

* ci: fix eslint path

* ci: manually run the build

* ci: use different container

* ci: install git

* ci: assume yes flag

* ci: use correct branch

* ci: fix branch and source

* ci: fix condition

* ci: remove useless steps

* ci: rename action

* ci: make executable again

* ci: cleanup

* ci: add stable branch

* ci: remove semi

* ci: do some logging for failing action

* ci: remove actions api

* ci: re-add semi

* ci: use actions repo

* ci: use v1 tags

* ci: remove semi

* chore: change job name passed to eslint

* chore: dummy commit, remove different semi

* ci: change job name

* chore: dummy commit

* ci: add gh-actions as possible branches

* ci: lint all branches

* ci: dummy

* ci: separate pr and push

* chore: run actions on gh branch

* ci: try excluding branches
2019-08-24 19:32:18 +02:00

24 lines
608 B
Bash

#!/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 run docs:test && npm run lint:typings