Skip to content

Instantly share code, notes, and snippets.

@iltempe
Created August 28, 2017 17:52
Show Gist options
  • Save iltempe/9656da6d124871bb498294804a7af9d2 to your computer and use it in GitHub Desktop.
Save iltempe/9656da6d124871bb498294804a7af9d2 to your computer and use it in GitHub Desktop.
travis example file
language: ruby
rvm:
- 2.3.3
script:
- set -e
- bundle exec jekyll build
after_success:
- git clone https://$GH_REF
- cd $(basename ${GH_REF%.git})
- git config user.name "iltempe"
- git config user.email ${EMAIL}
- rsync -az --delete --exclude '.git*' ../_site/ .
- touch .nojekyll
- git add -A .
- git commit -m "Generated Site by Travis CI - ${TRAVIS_BUILD_NUMBER}"
- git push -f "https://${GH_TOKEN}@${GH_REF}" ${TARGET_BRANCH} > /dev/null 2>&1
branches:
only:
- development
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- GH_REF: github.com/iltempe/jmap
- TARGET_BRANCH: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment