Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
Change vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweetchuck committed Jul 31, 2017
1 parent 680f67b commit be3ea7a
Show file tree
Hide file tree
Showing 37 changed files with 606 additions and 478 deletions.
24 changes: 12 additions & 12 deletions .git-hooks
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
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,16 @@ matrix:
# -
# os: 'osx'
# language: 'generic'
# env:
# - >-
# BREW_PHP=php71

before_install:
- 'src-dev/scripts/travis/before_install.sh'
- 'export COMPOSER_NO_INTERACTION=1'
- 'export COMPOSER_DISABLE_XDEBUG_WARN=1'
- "export CUSTOM_RUBY_VERSION=$(BUNDLE_GEMFILE='tests/_data/Gemfile.fail.rb' bundle platform --ruby | awk '{print $2}')"
- 'echo "The expected ruby version is ${CUSTOM_RUBY_VERSION}"'
- 'export BREW_PHP=php71'
- 'rvm install "${CUSTOM_RUBY_VERSION}"'
- 'rvm --default use "${CUSTOM_RUBY_VERSION}"'
- 'ruby --version'
- 'gem install bundler'
- 'BUNDLE_GEMFILE=tests/_data/Gemfile.success.rb bundle install'

install:
- 'composer install --no-progress'
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Robo task wrapper for Bundler

[![Build Status](https://travis-ci.org/Cheppers/robo-bundler.svg?branch=master)](https://travis-ci.org/Cheppers/robo-bundler)
[![codecov](https://codecov.io/gh/Cheppers/robo-bundler/branch/master/graph/badge.svg)](https://codecov.io/gh/Cheppers/robo-bundler)
[![Build Status](https://travis-ci.org/Sweetchuck/robo-bundler.svg?branch=master)](https://travis-ci.org/Sweetchuck/robo-bundler)
[![codecov](https://codecov.io/gh/Sweetchuck/robo-bundler/branch/master/graph/badge.svg)](https://codecov.io/gh/Sweetchuck/robo-bundler)

## Currently supported commands

Expand Down
Loading

0 comments on commit be3ea7a

Please sign in to comment.