-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
executable file
·44 lines (39 loc) · 1.63 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
dist: trusty
sudo: required
services:
- docker
language: go
go:
- 1.9.1
install:
# This script is used by the Travis build to install a cookie for
# go.googlesource.com so rate limits are higher when using `go get` to fetch
# packages that live there.
# See: https://github.com/golang/go/issues/12933
- bash scripts/gogetcookie.sh
- go get github.com/kardianos/govendor
script:
- export VERSION=v0.2
- export PRERELEASE=$(echo $VERSION | cut -d '-' -f 2)
- make fmt
- make test
- make bin
before_deploy:
- echo "Deploying $VERSION(-$PRERELEASE) to GitHub releases"
- for d in $(find ./pkg -type d -maxdepth 1 -mindepth 1 | cut -d '/' -f3); do zip -j terraform-provider-chefsolo_${VERSION}_${d}.zip ./pkg/${d}/terraform* ; done
branches:
only:
- master
matrix:
fast_finish: true
allow_failures:
- go: tip
deploy:
provider: releases
api_key:
secure: DrKYYorPRzUxNKA8bsTFS2KyANY1e1Xbv6MgjByvMddf46fjlhueo7i3LySlCijQCMvGLfn4C6zvfyY0uYIQsAnP9RHdDzbEZD00d+TaHydXGUdxzNQMTEkuoyGZ7kfBmS8QQ9GMOYfP3baAVq5E2m2tvoOFtvwxvNYyDOIwZvcbTMGtffvbhin4AWOC9p0VT+19m+Gl9/7upVygrGSzCYmwMTMnC32C1V+HA+vNpXuZ+9TaXsBDNxsz3g/ieSiGbNK27rrDt/HEcoeCYf84jteOGpvfA/KOZnNPpZZ9L0/eml77Hj2G1IKHo5rRSJaVDQRnF3F2loyJBnc5PbTeidVpfeLLJj2zgDo6eziPsBwPTnMJB5RTjA1h9MGP6PvqVsbDRHaQDv1rm2WF334pi1BuYJl2DkmgINfeoi/sBlUwpIgRKX39HGr56OGwqq3+8tKHg6FT4Pqr35YWepAY9N8MtK9GETYuofLZVHSCl1k255Jtb601UiCrAyICWQpcS63iA5zLlpK0IgL4uv42KGj0WF4h+j4XxUr943vvKX22NJH2IXRBRm0KwHKEkBKJq8Q+UxYJ06I+eYliDWAnxhSMrEl34Gxq7Okp/+jQFUclRtotbhC4CXIMcpye71WKT77fXLK8YkGeaPuAOWYCVNB3G5nmJ6IwST0AE9Y+7RY=
file: terraform-*.zip
skip_cleanup: true
file_glob: true
on:
repo: Mwea/terraform-provider-chefsolo