Implement "publish" command #1

jmalloc opened this Issue Jan 18, 2013 · 3 comments


None yet
1 participant

jmalloc commented Jan 18, 2013

Example usage:

./vendor/bin/woodhouse publish \
    --badge <phpunit-coverage-textfile> test/report/coverage.txt \
    --content test/report/coverage coverage-report \
    --content other-content other-destination \
    --token GITHUB_TOKEN

Parameter breakdown:

--badge <phpunit-coverage-textfile> <destination>

Publish the appropriate badge image file to <destination> in gh-pages branch.

--content <source> <destination>

Publish <source> to <destination> in gh-pages branch.

--token <environment-variable>

Use the token stored in the environment variable given by <environment-variable>. Note the lack of dollar-sign ($) in the example above, woodhouse should read the variable itself to prevent it appearing on the command line history.

Should publish automatically create the gh-pages branch if it does not exist?


jmalloc commented Jan 18, 2013

@ezzatron FYI.


jmalloc commented Jan 18, 2013

Actually not even certain those kind of parameters can be parsed out of the box with symfony/console, might have to be:

--badge coverage.txt:test/report/coverage.txt
--content test/report/coverage:coverage-report



jmalloc commented Jan 18, 2013

Usage would now be something like:

./vendor/bin/woodhouse \
    test/report/coverage:path/on/gh-pages \
    more/content:another/path/on/gh-pages \
    --coverage-phpunit test/report/coverage.txt \
    --badge path/on/gh-pages/coverage.png \
    --auth-token-env GITHUB_TOKEN

jmalloc was assigned Jan 18, 2013

@jmalloc jmalloc added a commit that referenced this issue Jan 19, 2013

@jmalloc jmalloc publish command working (#1) 3b68059

jmalloc closed this in f6ceff1 Jan 19, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment