Build hugo blog using travis

This commit is contained in:
Philipp Oppermann
2016-05-01 14:24:32 +02:00
parent 40170d0039
commit 1e69a0c627
3 changed files with 42 additions and 10 deletions

19
scripts/travis-build.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/sh
set -e
# build rust project
make
# clone hugo branch, which contains the blog template
git clone --branch=hugo https://github.com/phil-opp/blog_os.git hugo
cd hugo
# download hugo
wget https://github.com/spf13/hugo/releases/download/v0.15/hugo_0.15_linux_amd64.tar.gz
tar xf hugo_0.15_linux_amd64.tar.gz
# build the blog
hugo_0.15_linux_amd64/hugo_0.15_linux_amd64
cd ..