Skip to content

Instantly share code, notes, and snippets.

@laurelmay
Last active February 14, 2017 22:16
Show Gist options
  • Save laurelmay/a7abc4945e88835fbaeeb5b79147281b to your computer and use it in GitHub Desktop.
Save laurelmay/a7abc4945e88835fbaeeb5b79147281b to your computer and use it in GitHub Desktop.
Snippets for use during the Travis demo
For this, copy everything BETWEEN (NOT including) the --- BEGIN --- and --- END --- for each section.
--- BEGIN Pelican File Header ---
Title: POST TITLE
Date: 2017-02-14 10:56
Modified: 2017-02-14 10:56
Category: CATEGORY
Tags: TAG1, TAG2
Slug: slug-url
Authors: NAME
Summary: SUMMARY
--- END Pelican File Header---
--- BEGIN .travis.yml ---
language: python
branches:
only:
- master
install:
- pip install pelican ghp-import python-dateutil gitpython Markdown
script:
- make publish github
env:
global:
- GH_USER=kylelaker
- GH_REPO=uug-travis-demo
- GH_BRANCH=gh-pages
--- END .travis.yml ---
--- BEGIN Makefile modifications ---
github: publish
ghp-import -m "Generate Pelican site with Travis CI" $(OUTPUTDIR)
git push -fq https://$(GH_USER):$(GH_TOKEN)@github.com/$(GH_USER)/$(GH_REPO).git $(GH_BRANCH)
--- END Makefile modifications ---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment