Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Adding check for travis skip in commit message #186

Merged
merged 1 commit into from
Apr 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion travis/setup_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@

# Note to the future: keep the conda scripts separate for each OS because many
# packages call ci-helpers with:
#
#
# source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh
#
# The present script was added later.

# Skip build if the commit message contains [skip travis] or [travis skip]
# Remove workaround once travis has this feature natively
# https://github.com/travis-ci/travis-ci/issues/5032
echo "$TRAVIS_COMMIT_MESSAGE" | grep -E '\[(skip travis|travis skip)\]' \
&& echo "[skip travis] has been found, exiting." && exit 0

source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh;
7 changes: 7 additions & 0 deletions travis/setup_conda_linux.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash

# Skip build if the commit message contains [skip travis] or [travis skip]
# Remove workaround once travis has this feature natively
# https://github.com/travis-ci/travis-ci/issues/5032
echo "$TRAVIS_COMMIT_MESSAGE" | grep -E '\[(skip travis|travis skip)\]' \
&& echo "[skip travis] has been found, exiting." && exit 0


if [[ $DEBUG == True ]]; then
set -x
fi
Expand Down
6 changes: 6 additions & 0 deletions travis/setup_conda_osx.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash

# Skip build if the commit message contains [skip travis] or [travis skip]
# Remove workaround once travis has this feature natively
# https://github.com/travis-ci/travis-ci/issues/5032
echo "$TRAVIS_COMMIT_MESSAGE" | grep -E '\[(skip travis|travis skip)\]' \
&& echo "[skip travis] has been found, exiting." && exit 0

if [[ $DEBUG == True ]]; then
set -x
fi
Expand Down