From eef00ff35c476a9d40fd5a448def623e267bdd82 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 4 Oct 2016 19:15:19 +0200 Subject: [PATCH] Refactor: Move build commands into a new `travis-build.sh` --- .travis.yml | 5 +---- ci/travis-build.sh | 7 +++++++ 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 ci/travis-build.sh 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