-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3037 from BytesGalore/travis_compile_on_demand
travis: enable travis compile tests on set github label `Ready for Travis build`
- Loading branch information
Showing
3 changed files
with
50 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#! /bin/bash | ||
# | ||
# Copyright (C) 2014 Martine Lenders <mlenders@inf.fu-berlin.de> | ||
# | ||
# This file is subject to the terms and conditions of the GNU Lesser | ||
# General Public License v2.1. See the file LICENSE in the top level | ||
# directory for more details. | ||
# | ||
|
||
# The following script part has been moved here from: | ||
# ./dist/tools/pr_check/pr_check.sh | ||
|
||
GITHUB_API_HOST="https://api.github.com" | ||
GITHUB_REPO="RIOT-OS/RIOT" | ||
|
||
if which wget &> /dev/null; then | ||
GET="wget -O -" | ||
elif which curl &> /dev/null; then | ||
GET="curl" | ||
else | ||
echo "Script needs wget or curl" >&2 | ||
exit 2 | ||
fi | ||
|
||
LABELS_JSON=$(${GET} "${GITHUB_API_HOST}/repos/${GITHUB_REPO}/issues/${TRAVIS_PULL_REQUEST}/labels" 2> /dev/null) | ||
|
||
check_gh_label() { | ||
LABEL="${1}" | ||
|
||
echo "${LABELS_JSON}" | grep -q "${LABEL}" | ||
return $? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters