This file contains hidden or 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
| #! /usr/bin/env ruby | |
| submods = Hash.new | |
| %x{git config -f .gitmodules --get-regexp '^submodule\..*\.(path|url)$'}.lines.each do |l| | |
| submodule, key, value = l.match(/^submodule\.(.*)\.(path|url)\s+(.*)$/)[1..3] | |
| submods[submodule] = Hash.new unless submods[submodule].is_a?(Hash) | |
| submods[submodule][key] = value | |
| end |
This file contains hidden or 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
| #!/bin/sh | |
| # before pushing code | |
| # Run sniffer and fixer. | |
| DOCKER_EXEC_COMMAND="docker exec --workdir /path/to/project container-name" | |
| # Exclude warnings for now. | |
| PHPCBF_COMMAND="vendor/bin/phpcbf --report=summary --standard=.phpcs.xml --warning-severity=0 --colors" | |
| # Get a list of all files to be pushed |
OlderNewer