This repository has been archived by the owner on Mar 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #1 from Sweetchuck/change-vendor
Change vendor
- Loading branch information
Showing
30 changed files
with
1,070 additions
and
874 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 |
---|---|---|
@@ -1,31 +1,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "BEGIN Git hook: ${cghHookName}" | ||
echo "BEGIN Git hook: ${sghHookName}" | ||
|
||
function cghExit () | ||
function sghExit () | ||
{ | ||
echo "END Git hook: ${cghHookName}" | ||
echo "END Git hook: ${sghHookName}" | ||
|
||
exit $1 | ||
} | ||
|
||
export COMPOSER_DISABLE_XDEBUG_WARN=1 | ||
|
||
# @todo Better detection for executables: php, composer.phar. | ||
cghRobo="$(composer config 'bin-dir')/robo" | ||
sghRobo="$(composer config 'bin-dir')/robo" | ||
|
||
test -s "${cghBridge}.local" && . "${cghBridge}.local" | ||
test -s "${sghBridge}.local" && . "${sghBridge}.local" | ||
|
||
cghTask="githook:${cghHookName}" | ||
sghTask="githook:${sghHookName}" | ||
|
||
# Exit without error if "robo" doesn't exists or it has no corresponding task. | ||
test -x "$cghRobo" || cghExit 0 | ||
"${cghRobo}" help "${cghTask}" 1> /dev/null 2>&1 || cghExit 0 | ||
test -x "$sghRobo" || sghExit 0 | ||
"${sghRobo}" help "${sghTask}" 1> /dev/null 2>&1 || sghExit 0 | ||
|
||
if [ "$cghHasInput" = 'true' ]; then | ||
"$cghRobo" "${cghTask}" $@ <<< $(</dev/stdin) || cghExit $? | ||
if [ "$sghHasInput" = 'true' ]; then | ||
"$sghRobo" "${sghTask}" $@ <<< $(</dev/stdin) || sghExit $? | ||
else | ||
"$cghRobo" "${cghTask}" $@ || cghExit $? | ||
"$sghRobo" "${sghTask}" $@ || sghExit $? | ||
fi | ||
|
||
cghExit 0 | ||
sghExit 0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ DEPENDENCIES | |
compass-validator (>= 3.0.1) | ||
|
||
RUBY VERSION | ||
ruby 2.3.1p112 | ||
ruby 2.3.1 | ||
|
||
BUNDLED WITH | ||
1.14.5 |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Robo task wrapper for Compass | ||
|
||
[![Build Status](https://travis-ci.org/Cheppers/robo-compass.svg?branch=master)](https://travis-ci.org/Cheppers/robo-compass) | ||
[![codecov](https://codecov.io/gh/Cheppers/robo-compass/branch/master/graph/badge.svg)](https://codecov.io/gh/Cheppers/robo-compass) | ||
[![Build Status](https://travis-ci.org/Sweetchuck/robo-compass.svg?branch=master)](https://travis-ci.org/Sweetchuck/robo-compass) | ||
[![codecov](https://codecov.io/gh/Sweetchuck/robo-compass/branch/master/graph/badge.svg)](https://codecov.io/gh/Sweetchuck/robo-compass) | ||
|
||
@todo |
Oops, something went wrong.