Skip to content

Commit

Permalink
Make requisite change to allow travis CI to build branch 'bleeding_ed…
Browse files Browse the repository at this point in the history
…ge' of fork 'opetch' in github.com and upload artifact to bintray
  • Loading branch information
opetch committed Jan 29, 2018
1 parent cfa90cd commit d3bab25
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ website/node_modules
*.iml
*.test
*.iml
descriptor.json

website/vendor

Expand All @@ -32,4 +33,4 @@ website/vendor

# Keep windows files with windows line endings
*.winfile eol=crlf
/.vs
/.vs
20 changes: 13 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,30 @@ sudo: false
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:
- make test
- make vendor-status
- make vet

- make build
branches:
only:
- master
- bleeding_edge
matrix:
fast_finish: true
allow_failures:
- go: tip
before_deploy:
- mkdir target
- cp $GOPATH/bin/terraform-provider-aws target
- sed -e "s/VERSION/$(git describe --tags)/g" descriptor.json.template > descriptor.json
deploy:
on: bleeding_edge
provider: bintray
file: descriptor.json
user: opetch
key:
secure: YnJVdp6/fFRuwt1p/YrfDoWto2FMOeOdZtr4r2wIgyNO2G9L0xnvN+MyVJ//2WmY+jjqNeGBPrae81Glq7qyab9jOKKtWRC8mecK85m+dM/OZF4KwZa0dqAGYuAlYztxW/EnCisI3aZBTMs/w1U/J6HcSd/ptSRCWNU5QZeE8tER20NslsAcgg6QXvnbAZeJ4ksA7Ul4ca0MhFDQc+1zs7Ymrd244bHwWwhrzWR+ighv2O8JSCByybIZuCF/D1vNCTospA9ZJPWb40fRimECimm2GFrioWZPnpkJWnfkoATQEnOK8SS6uwzgkUagsrVoJbDXlsjF7dzL36qyPkIs5noSNkvzVsVHEbAU4W3ym/iZoSS01iCIhhIui08orI7LktDwIQtLpWzGMfmdRnTbOZtEi23zrgRyNdVMwUzqhvXEgIDiXu9pZPZMcvKGmCuDOvqPSmrumWuQD5uMxr+bxtNWYVPDM5m3lpEPYRtTdAVpOfxtP4mx2+/uTSzIHB/kMw3+tNmSQ+77NfP3EA1KaAEEO3KO3l1I4GaUNYg0pI5y3ieKpC79ENtmVJ+uLImCGL6j2Zla8s4WU5W/6wa6f1rBillweHapvRbXOt/3k7UaM5N7KvXuQkbjW+9jA0ME2r4lXVfKCETvEmIA30GVlHnBVPylMexiGeDaiWIQeNs=
21 changes: 21 additions & 0 deletions descriptor.json.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"package": {
"name": "terraform-provider-aws",
"repo": "binaries",
"subject": "opetch",
"vcs_url": "https://github.com/opetch/terraform-provider-aws.git",
"licenses": ["MIT"],
"public_download_numbers": false,
"public_stats": false
},

"version": {
"name": "VERSION"
},

"files":
[
{"includePattern": "target/terraform-provider-aws", "uploadPattern": "terraform-providers/terraform-provider-aws_VERSION"}
],
"publish": true
}
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"github.com/hashicorp/terraform/plugin"
"github.com/terraform-providers/terraform-provider-aws/aws"
"github.com/opetch/terraform-provider-aws/aws"
)

func main() {
Expand Down

0 comments on commit d3bab25

Please sign in to comment.