nodeschool/montreal

Add continuous integration to support i18n plugin

ajmas opened this issue · 9 comments

ajmas commented

Add continuous integration to support the i18n plugin, required to allow completing issue #1.

Proposal:

  • Use Travis
  • Limit to branches with .travis.yml file
  • Generated code from gh-pages branch goes into gh-page-gen branch, which will be set as the branch GitHub Pages will show
ajmas commented

Have created https://travis-ci.org/nodeschool/montreal , but still requires configuration. Can anyone who has commit access to this repo tell me if you are able to view the settings?

Also see https://jekyllrb.com/docs/continuous-integration/travis-ci/ for configuration guide.

Looks like it's all configured correctly by default!
All we need is the travis.yml in the repo to get going.

Should I go ahead and make a PR with the travis.yml, or would you like to do the honors?

ajmas commented

I am looking at it now. Just doing a test build. Though if you have more time go for it. The one thing not resolved on my end is where to put the generated code.

I'll see if I've got time this evening to get around to it.
As for the generated code, we would need it to be generated into the root of the project for gh-pages to see them, so we'll have to modify the jekyll config to have the source files in a "source" folder and the generated output in the root of the project.

Alternatively we can have a branch for the source files and the generated output deployed to gh-pages. (seems like the cleanest solution)

ajmas commented

If we can do a separate branch for generated content, then it would avoid mixing source and generated code? Also avoid the risk of recursive builds.

ajmas commented

This gist describes how to deploy to a github project: https://gist.github.com/domenic/ec8b0fc8ab45f39403dd

ajmas commented

@matchai I am out of time for the next few days, but you can see in Travis the failure. If you have time could you look the failure with the openssl step? I think that is all that is missing.

ajmas commented

Reopening, since I just noticed we are limited to using gh-pages or master for gh-pages. It looks like I will need to reconfigure and change the source branch, I am thinking maybe something like gh-pages-src?