Skip to content

Instantly share code, notes, and snippets.

@darvin
Created January 13, 2013 07:36
Show Gist options
  • Save darvin/4522846 to your computer and use it in GitHub Desktop.
Save darvin/4522846 to your computer and use it in GitHub Desktop.
.travis.yml for Octopress at GitHub pages
## Kinda does not works in current Travis :(
branches:
only:
- source
language: ruby
rvm:
- 1.9.3
before_script:
# Set read-write git origin
- git remote set-url origin $REPO.git
# Unpack ssh key for git
- echo -n $id_rsa_{00..30} >> ~/.ssh/id_rsa_base64
- base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
# Disable SSH server fingerprint verification
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
# Set deployment target to github pages
- rake setup_github_pages[$REPO]
script:
# Generate site
- rake generate
after_script:
# Workaround for travis not to try run rake on generated site
- ! 'echo ''script: "ls *.html"'' > public/.travis.yml'
# Deploy!
- rake deploy
env:
global:
# Repo read-write address
- REPO="[email protected]:darvin/darvin.github.com"
# SSH key. Encoded. See https://gist.github.com/4242707
- secure: "XEOeB8uR5rakQrk0JeQIsPvf6A8/OctcY9TiBdIHSsoHFIonwFJLy61bGHat\nmdk0AMT0yna55vgbw6RtB0vI40jx28+lETjrK4psnBZggicgYmO0VdeGX3Xt\nCow6LyhltDOgNthK1Nx8ZagKCd0k3LICJbW+B5rcD5ERuYC+P0Q="
- secure: "E39AGLwfNlAG6Xh8T01ribrfXcSIW5qOvMrzC/a9leNKw2/yJyfPAa97dCGA\nzNbaJPDwsPCf6Q9hgPQP/57B/7j0vHp27NDO19RKYrJg43D6LFBbNOfYYW6X\ntc/+74OPOZn75zQRWwK6XXDxVabSnVlDnKgRFURWHytiOe3yRiM="
- secure: "F1sCCMqNLjfbbda1uIa+iGKbx23uvznByfrAv12VYguREBWfNMJhlEaQz/Gp\n2eOR9EsnDKj8khCwM/UNVMd1POdhyEKza6GhMWFHoKOD311v/RSQhqjTa7Eo\nbK963rTXszXc6Dq9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TQ2coLOYnH38WvAxMyeHjoX6n9yn+cz1Jz4Vk\nlNdoZ7K6FpR3ws5/ffwWGNbDP0350udIP6DDo9TPtrOe/slQoNg="
- secure: "TMQEKRDD4cU1/6adZChFwEjbaK83oB6wLhTYQ63fPz2TDBfJYGr8jkb7AWJm\nSaMfLy/1XNi3l/7OfkAbt8RZrasitDx3nsbWuS8NgT9GRMh1u9PsLXyiLpZe\nnkdd6B0A9AraaQAgDBbEF1WsevtOKAaHWnNldtq7GPi7lo7Yk8Y="
- secure: "F8stcE8lL3iVF5k0rBpFomfimBBE8SJHcI/OCFD4QJqdG0AQf5SxHDAj2hQc\nzGqCW2nACs+8YJd8pIv4A8MhU6ykjgKDp1cKl4sLS0mXexjRkjqcqgoFywgw\nJ5oTUYQp0yoN+4hUFTMUrS/BvFpXsrurZoTcOu5J2EKdBV5/D+s="
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment