Skip to content

TravisCI: Automatically update "nodegit.github.com" repository - #793

Merged
tbranyen merged 2 commits into
nodegit:masterfrom
Turbo87:travis-deploy
Nov 21, 2015
Merged

tbranyen merged 2 commits into
nodegit:masterfrom
Turbo87:travis-deploy

Conversation

@Turbo87

@Turbo87 Turbo87 commented Nov 20, 2015

Copy link
Copy Markdown
Contributor

as suggested in #787

To make this work you will have to generate a GitHub API token with the public_repo permission and add it as a secret environment variable GH_TOKEN to the TravisCI project settings. After that every push to the master branch should automatically update the https://github.com/nodegit/nodegit.github.com repository.

@Turbo87

Turbo87 commented Nov 20, 2015

Copy link
Copy Markdown
Contributor Author

Since I only changed the Linux + Node.js 4.1 instructions the build failure on TravisCI is most likely not related to my changes. If you want to make sure everything works as expected please restart the failed jobs to try again.

@tbranyen

Copy link
Copy Markdown
Member

Can you add a tag with the value of TRAVIS_COMMIT? I'd like to wire up a nav in the website to list all the tags (avoids listing all commits) and it'd be cool to search by NodeGit SHA.

@Turbo87

Turbo87 commented Nov 20, 2015

Copy link
Copy Markdown
Contributor Author

@tbranyen sorry, could you rephrase that? I'm not sure what you mean.

@Turbo87

Turbo87 commented Nov 20, 2015

Copy link
Copy Markdown
Contributor Author

I rebased the branch to get rid of the merge conflict created by #792

@Turbo87

Turbo87 commented Nov 20, 2015

Copy link
Copy Markdown
Contributor Author

@tbranyen I think I understand what you want. Should be possible, although I'm not sure if it will be all that useful. I think it would make more sense to have have the same tags in the website repo as in the main repo.

@tbranyen

Copy link
Copy Markdown
Member
git tag $TRAVIS_COMMIT
git push $TRAVIS_COMMIT

Is what I'm thinking.

@Turbo87

Turbo87 commented Nov 20, 2015

Copy link
Copy Markdown
Contributor Author

@tbranyen what do you mean by $TRAVIS_VERSION? (not mentioned in http://docs.travis-ci.com/user/environment-variables/)

Again: do you really want to tag every single commit in the repo? or do you want the tags in the website repo to be similar to the tags in the main repo?

@tbranyen

Copy link
Copy Markdown
Member

@Turbo87 sorry, was a typo when I writing on the road. I updated my comment to show TRAVIS_COMMIT

@Turbo87

Turbo87 commented Nov 21, 2015

Copy link
Copy Markdown
Contributor Author

@tbranyen done

@tbranyen

Copy link
Copy Markdown
Member

lgtm 👍

@tbranyen

Copy link
Copy Markdown
Member

Thanks a ton!

tbranyen added a commit that referenced this pull request Nov 21, 2015
TravisCI: Automatically update "nodegit.github.com" repository
@tbranyen
tbranyen merged commit ce707fb into nodegit:master Nov 21, 2015
@Turbo87

Turbo87 commented Nov 21, 2015

Copy link
Copy Markdown
Contributor Author

hmm, it doesn't seem to upload anything yet though... did you add the GH_TOKEN env var yet?

@tbranyen

Copy link
Copy Markdown
Member

No not yet, I didn't realize that was a requirement for us here. Shouldn't that just be an encrypted Travis value in the .travis.yml?

@johnhaley81

Copy link
Copy Markdown
Collaborator

Yeah, I'd rather encrypt the value and put it in .travis.yml than have it live on the Travis web site.

@Turbo87

Turbo87 commented Nov 21, 2015

Copy link
Copy Markdown
Contributor Author

@tbranyen feel free to do that. I'm not sure if I'm able to encrypt it myself without write access to the repo.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants