Skip to content

Commit

Permalink
Moving to GitHub and TravisCI
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap committed Jun 6, 2018
1 parent 12a8700 commit 744f6ab
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 28 deletions.
22 changes: 19 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,26 @@ services:
- docker

install:
- HUGO_LATEST_URL=$(curl --silent --location https://api.github.com/repos/spf13/hugo/releases/latest | awk -F \" '/browser_download_url.*Linux-64bit.tar.gz/ { print $4 }')
- gem install awesome_bot
- export HUGO_LATEST_URL=$(curl --silent --location https://api.github.com/repos/spf13/hugo/releases/latest | awk -F \" '/browser_download_url.*Linux-64bit.tar.gz/ { print $4 }')
- echo "$HUGO_LATEST_URL"
- if [ -z "$HUGO_LATEST_URL" ]; then curl --verbose --location https://api.github.com/repos/spf13/hugo/releases/latest; fi
- curl --silent --location $HUGO_LATEST_URL | sudo tar xvzf - -C /usr/local/bin/ hugo
- rm -rf public || exit 0

script:
- export HOST_IP_ADDRESS="$(ip -4 addr show docker0 | sed -n 's/.* inet \([^/]*\).*/\1/p')"
- hugo server --bind ${HOST_IP_ADDRESS} --baseURL http://my-hugo-testing-domain.com &
- docker run -it --rm --add-host my-hugo-testing-domain.com:${HOST_IP_ADDRESS} linkchecker/linkchecker --check-extern http://my-hugo-testing-domain.com:1313
- hugo server --bind ${HOST_IP_ADDRESS} --baseURL http://${TRAVIS_REPO_SLUG##*/} &
- docker run -it --rm --add-host ${TRAVIS_REPO_SLUG##*/}:${HOST_IP_ADDRESS} linkchecker/linkchecker --check-extern http://${TRAVIS_REPO_SLUG##*/}:1313
- awesome_bot --allow-dupe --allow-redirect --skip-save-results `find . -name *.md`
- hugo

# Deploy to GitHub pages
deploy:
provider: pages
fqdn: ${TRAVIS_REPO_SLUG##*/}
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: public
on:
branch: master
25 changes: 0 additions & 25 deletions netlify.toml

This file was deleted.

0 comments on commit 744f6ab

Please sign in to comment.