Refactor: Move build commands into a new travis-build.sh

This commit is contained in:
Philipp Oppermann
2016-10-04 19:15:19 +02:00
parent 9d5728cdcd
commit eef00ff35c
2 changed files with 8 additions and 4 deletions

View File

@@ -8,10 +8,7 @@ install:
- wget https://github.com/spf13/hugo/releases/download/v0.16/hugo_0.16_linux-64bit.tgz - wget https://github.com/spf13/hugo/releases/download/v0.16/hugo_0.16_linux-64bit.tgz
- tar xf hugo_0.16_linux-64bit.tgz - tar xf hugo_0.16_linux-64bit.tgz
script: script: bash ci/travis-build.sh
- git clone https://github.com/phil-opp/blog_os.git
- cp -r blog_os/blog ../blog
- ./hugo
after_success: bash ci/travis-blog-update.sh after_success: bash ci/travis-blog-update.sh

7
ci/travis-build.sh Normal file
View File

@@ -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