CI: Remove hugo build and deploy

This commit is contained in:
Philipp Oppermann
2017-03-12 00:25:45 +01:00
parent 24a4c57deb
commit 7ef97adb9c
3 changed files with 3 additions and 54 deletions

View File

@@ -1,23 +0,0 @@
#!/bin/sh
set -e
# build rust project
make
# check formatting (rustfmt)
PATH=~/.cargo/bin:$PATH
cargo fmt -- --write-mode=diff
# 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.16/hugo_0.16_linux-64bit.tgz
tar xf hugo_0.16_linux-64bit.tgz
# build the blog
./hugo
cd ..

View File

@@ -1,24 +0,0 @@
#!/bin/sh
set -e
[ "$TRAVIS_BRANCH" = master ]
[ "$TRAVIS_PULL_REQUEST" = false ]
body='{
"request": {
"branch":"hugo",
"config": {
"env": {
"matrix": ["UPDATE_COMMIT='"$TRAVIS_COMMIT"'"]
}
}
}}'
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token $TRAVIS_TOKEN" \
-d "$body" \
https://api.travis-ci.org/repo/phil-opp%2Fblog_os/requests