-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.travis.yml
More file actions
19 lines (14 loc) · 815 Bytes
/
.travis.yml
File metadata and controls
19 lines (14 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
sudo: false
language: go
go: 1.4
install:
- wget https://github.com/gohugoio/hugo/releases/download/v0.31.1/hugo_0.31.1_Linux-64bit.tar.gz
- tar xzvf hugo_0.31.1_Linux-64bit.tar.gz
- chmod +x hugo
script:
- chmod +x deploy_ghpages.sh
- if [[ $TRAVIS_BRANCH = master ]]; then ./hugo && echo seedstack.org >| public/CNAME; fi
- if [[ $TRAVIS_BRANCH = dev ]]; then ./hugo -d dev -b http://dev.seedstack.org/ && echo dev.seedstack.org >| dev/CNAME; fi
after_success:
- if [[ $TRAVIS_PULL_REQUEST = false ]] && [[ $TRAVIS_BRANCH = master ]]; then ./deploy_ghpages.sh && (curl http://www.google.com/webmasters/tools/ping?sitemap=http%3A%2F%2Fseedstack.org%2Fsitemap.xml > /dev/null || :); fi
- if [[ $TRAVIS_PULL_REQUEST = false ]] && [[ $TRAVIS_BRANCH = dev ]]; then ./deploy_ghpages.sh dev dev; fi