Permalink
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (27 sloc) 1.38 KB
branches:
only:
- master
language: go
go:
- 1.7.1
before_script:
- git clone https://${GH_TOKEN}@github.com/$TRAVIS_REPO_SLUG.git $TRAVIS_REPO_SLUG
- cd $TRAVIS_REPO_SLUG
- git checkout -qf $TRAVIS_BRANCH
- git clone --branch v2 https://github.com/go-yaml/yaml $GOPATH/src/gopkg.in/yaml.v2
- go get -u -v github.com/spf13/hugo
- git config --global user.email "systems+crunchbot@crunch.io"
- git config --global user.name "Crunchbot"
script:
- git clone https://github.com/jeblister/kube.git ./themes/kube
- hugo
after_success:
- git checkout gh-pages
- cp -r public/* .
- rm -rf public
- git add .
- git commit -m "Updating gh-pages" || true
- git push origin gh-pages > /dev/null 2>&1 || true
env:
global:
secure: BwBP/8PVCPvYyF0hoJSblSSfN822ed0zqTYb8oCG0yB4Pll9mIBLhL8IzGZs4TLOw/Za4ApDESr2O/LkNfIdnZuMMtgm3ANEBihfVBpZmgxHaNZv2GGNk4rNjWpUjyIwqMAjUkO0lRBBfEmOfN5bjmfhwhn+wy8/cJccmaTUg/IDJ0JAw+Yzy3ZT0xfz2tybN6pZ7Ul4jM1wULRWlxdRzITnYR5OgkPthveCryIod8HJgRldxaI6r7dIbgBwSYBF0DoUFykBOxmd/achIe3B3Hle/Ahb1KwCEkAaCM+5riDnvREvvZZ+CjUoXsnRgTFWe6rDhlU/9L2sJVPh6mF7MH6v+VoaoExEb+xls9J+mott5EAaSuu2vYyqkSYGZ+6aqoMyUPZ1fN3+MtY/Pz1Ch/1ZH66gnoLihQMBhulvNXGujl8O6hOwQKSDrw2Y0ECdZ3clPG6OVOnJ34bYhOmT15ArCvW6Aio/OPhwC5/wIRl3/OdGQe2RGzWFsG9juu5y6pBhkf2RQQgt72l1NAwQM0vE4YOP4xLYOhaMNlX+gIOqbel98VmEK8kHp3pfruWBt+mR1xNSUTtkqTFY6ifSyn/gTRlG74sQegabzpee7Gl63A9yuI56OlCbWZmWJV30f8gzJHSH2kKNjUmmTNcqisllfFOXaPy01bIqGd7T/zw=