Commit Graph

13 Commits

Author SHA1 Message Date
Daniel Hahler 72725ef7ce Travis: redirect/filter stderr for git-clone/git-push/curl (#911)
git-clone for example might reveal the token on network errors, which is
now replaced by `sed`.
2016-05-16 18:54:19 +02:00
Daniel Hahler 30eafb1132 travis-apidoc.sh: add `|| true` to grep calls (#887)
This made the apidoc script stop before the merge/push.

This also adds "EXIT CODE" information in case there is a non-zero exit.
2016-05-09 01:05:53 +02:00
Daniel Hahler 7b0dcfc3df Travis: apidoc: improve merge commit's message
- This should really add the reference to the PR/commit that triggered
   the apidoc changes.
 - Link to job instead of build.
 - Add URL to commit range.

Closes https://github.com/awesomeWM/awesome/pull/865.
2016-05-02 01:52:56 +02:00
Daniel Hahler 95f1b1ad56 Travis: use new GH_APIDOC_TOKEN
While still being used via Travis' `secure` env mechanism, we could
additionally set it through an env for the repo (not displayed by
default), and revoke/regenerate it when it gets revealed.
The token provides access only to the `apidoc` repo.

Closes https://github.com/awesomeWM/awesome/pull/866.
2016-05-02 00:56:01 +02:00
Daniel Hahler a0e98c6157 travis-apidoc: shellcheck fixes, especially for non-empty GH_TOKEN 2016-04-05 00:59:29 +02:00
Daniel Hahler c431f06538 travis-apidoc: important note about valid json 2016-04-05 00:28:21 +02:00
Daniel Hahler a10431e7a4 travis-apidoc: reference PR only in merge commit for less noise in the PR 2016-04-05 00:27:57 +02:00
Daniel Hahler 7f17f6bc0f travis-apidoc: add link to pull request to commit messages 2016-04-05 00:23:25 +02:00
Daniel Hahler 755088e87a travis-apidoc: fix old/new revisions in PR comments 2016-04-05 00:23:16 +02:00
Uli Schlachter 5db6c04c42 Add vim modelines to all shell scripts
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-12-12 17:36:35 +01:00
Daniel Hahler 9b3558899b travis-apidoc: swap 'relevant' and 'boilerplate' commits 2015-10-30 00:02:19 +01:00
Daniel Hahler b655b74cb9 travis-apidoc.sh: fix diff -I pattern for h2
`diff -I` appears to match the parentheses as-is.

It should not have been triggered for
https://travis-ci.org/awesomeWM/awesome/jobs/87792709#L3334.
2015-10-28 01:23:25 +01:00
Daniel Hahler 88ba798ae3 Travis: apidoc: script, compare view, PR comment
This moves the apidoc uploading to build-utils/travis-apidoc.sh, which
makes it more pleasant to maintain/read.

Additional enhancements:
 - handle all branches and PRs, and provide compare view links as a comment
   for the latter, via awesome-robot.  This gets skipped for PRs for
   forks, because then the Github secret is not available for security
   reasons.
 - use a merge commit to keep relevant changes and boilerplate together.
 - simplified/shorter AWESOME_VERSION override.
 - add last commit message of the repo to the apidoc's commit message.

Closes https://github.com/awesomeWM/awesome/pull/358.
2015-08-02 21:55:16 +02:00