.travis.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. language: ruby
  2. env:
  3. global:
  4. - secure: "jA/a4ASQfDnXmyag08A+vrZo7FHZs5aTs4Zc1rpeBEz0TXLzea5Z67TbU2U1n7prCmfKTuQhyZ1bcSN0kMTS8JJ/xxh5K9jutigT3GbG4dDrpgz6qqk6yedWfGRJVEgNaadS+1gnR7P3hBJ6/6i0GDCU+KlP8JvDYzJfXkKlH7Y="
  5. script: bundle exec jekyll build
  6. branches:
  7. only:
  8. - master
  9. before_script:
  10. - echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
  11. after_success:
  12. - rm -rf _deploy
  13. - mkdir _deploy
  14. - cd _deploy
  15. - git clone https://github.com/opencompany/opencompany.github.io.git --branch=master .
  16. - rsync -avzh ../_site/ ./
  17. - git add .
  18. - git config --global user.name "$GIT_NAME"
  19. - git config --global user.email "$GIT_EMAIL"
  20. - git commit -m "New site version. Committed by Travis-CI."
  21. - git config credential.helper "store --file=.git/credentials"
  22. - echo "https://${GH_TOKEN}:@github.com" > .git/credentials
  23. - git push origin master
  24. notifications:
  25. irc:
  26. on_success: change
  27. on_failure: change
  28. channels:
  29. - irc.freenode.net##opencompany
  30. template:
  31. - '%{repository}#%{build_number} (%{branch}) %{message} %{build_url}'