]> git.immae.eu Git - github/fretlink/terraform-provider-mailgun.git/blame - .travis.yml
add automatic push of github pages
[github/fretlink/terraform-provider-mailgun.git] / .travis.yml
CommitLineData
7c735cfa
AG
1dist: trusty
2sudo: required
3services:
4- docker
5language: go
6go:
7 - "1.12.x"
68936298 8 - "1.11.x"
7c735cfa
AG
9
10install:
11# This script is used by the Travis build to install a cookie for
12# go.googlesource.com so rate limits are higher when using `go get` to fetch
13# packages that live there.
14# See: https://github.com/golang/go/issues/12933
15- bash scripts/gogetcookie.sh
16
17script:
18- make test
19- make vet
20- make website-test
065bf5d7 21- make shellcheck
87e93609 22- make website-githubpages
7c735cfa 23
87e93609
AG
24deploy:
25 provider: pages
26 skip_cleanup: true
27 github_token: $GITHUB_TOKEN
28 target_branch: gh-pages
29 keep_history: true
30 local_dir: terraform-provider-website
31 on:
32 all_branches: true
33
7c735cfa
AG
34matrix:
35 fast_finish: true
36 allow_failures:
37 - go: tip
12576b10
AG
38
39cache:
40 directories:
73901c4d 41 - $HOME/.cache/go-build
12576b10
AG
42 - $HOME/gopath/pkg/mod
43
7c735cfa 44env:
73901c4d
PB
45 matrix:
46 - GO111MODULE=on