diff --git a/.travis.yml b/.travis.yml index 577fba28..3bf6c9b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,10 +8,7 @@ install: - wget https://github.com/spf13/hugo/releases/download/v0.16/hugo_0.16_linux-64bit.tgz - tar xf hugo_0.16_linux-64bit.tgz -script: - - git clone https://github.com/phil-opp/blog_os.git - - cp -r blog_os/blog ../blog - - ./hugo +script: bash ci/travis-build.sh after_success: bash ci/travis-blog-update.sh diff --git a/ci/travis-build.sh b/ci/travis-build.sh new file mode 100644 index 00000000..e381cba1 --- /dev/null +++ b/ci/travis-build.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +git clone https://github.com/phil-opp/blog_os.git +cp -r blog_os/blog ../blog +./hugo