Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

Commit

Permalink
Merge branch 'master' into pw/integrations-data-source
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilde authored Nov 16, 2017
2 parents 2af2233 + a300edb commit 0ced15b
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 14 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ go:
- 1.9.x
script:
- make
after_success:
- make release
env:
global:
- |
RUNSCOPE_INTEGRATION_DESC="Slack: #general channel, send message on all test runs"
- DEBUG=1
- TF_LOG=DEBUG
- TF_ACC=1
- secure: WuBIDsitJiSSj43a+sz4R9cDY2AF2ODerVkx2eKxXIXtKRLqjBxiQD8gekfTIprbiMfsOCMPr5cjp1AmjuZCWu10DrshAbPvTP6h5Fvm10CRkpdojyOoJZuRrhhZwpaahxo2tE53iLHXtQ+5CMKOecG1Z2ts7b3jWny93AVwuD+Jmft27KqBcFPceOL9mQgdMEBOTjTV5wdhKrRtiyzrVUx50odkuKXGKGFT8GdKyvF6KxuOA2TK+2o7tFiswEUXTWZUNM6weC84Mx/74VSy0tzy6+fTaDkYR5X4BcXQNthctLeElpw/bSqGWJZcEmLOBnPwbB5Si56f/jS5COdQ0bXmuQD+eE16vI+F5ufXHibP4Uh8ltLMEkj5YD6PWNL4A5xAnOps4zLBM43wxtRl00d9BmSn30VlY8TfTQALSR5CC/zB6ciNQm+Or9Awgolucj7MDA/dgreEElDRS2j/Gl9JlJ3DuKUWwEHn9KU3g4bYnnRqUSVWVjoPg+jOkkUWC+hb8N7KF89VUV+J7LvsfMJM5b3030WPIGug2GLc1avVrWGHPTgTXit6/HueLSuHdeD/nQOqBTarzAHdNP72ACcbcuaknAUUdo9nTZQUVCbjca8PkBveIosQP07RHBtoxixkgkNSLialZx2Uhlgu2MWbp8r1GEBauJMxLu4voBY=
- secure: Om90Aveg0wYEu4SAdsjOWHrumvV7tIVCENelnGEPBQY9F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ft70sruSsXDo7hlOzBc5MH8TeWuWNPA7W9FoZMONCZyADTsNrDT3BCM/NgOjATdbveJMhuyvxRxqeeFdwaGZtJEsHISsZThX5e/gA+s3f4NiQ9a8rIuTIjfoCChFAkwJckYtF9jhppOVj9UvQ1+0HUXr0snJA0W8mjZLQZ0j8EHMKPu0OwYl+BCrLacgGNAgK+P0xPmYO00eyTxB/eLqq2+S4C3y33uaMkg2cd5v6lIMgaso=
12 changes: 4 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,10 @@ build-gox: deps fmtcheck vet
gox -osarch="linux/amd64 windows/amd64 darwin/amd64" \
-output="pkg/{{.OS}}_{{.Arch}}/terraform-provider-runscope" .

release: build-gox
@test "${VERSION}" || (echo 'VERSION name required' && exit 1)
rm -f pkg/darwin_amd64/terraform-provider-runscope_${VERSION}_darwin_amd64.zip
zip pkg/darwin_amd64/terraform-provider-runscope_${VERSION}_darwin_amd64.zip pkg/darwin_amd64/terraform-provider-runscope
rm -f pkg/linux_amd64/terraform-provider-runscope_${VERSION}_linux_amd64.zip
zip pkg/linux_amd64/terraform-provider-runscope_${VERSION}_linux_amd64.zip pkg/linux_amd64/terraform-provider-runscope
rm -f pkg/windows_amd64/terraform-provider-runscope_${VERSION}_windows_amd64.zip
zip pkg/windows_amd64/terraform-provider-runscope_${VERSION}_windows_amd64.zip pkg/windows_amd64/terraform-provider-runscope.exe
release:
go get github.com/goreleaser/goreleaser; \
goreleaser; \

deps:
go get -u github.com/mitchellh/gox

Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ See the [Plugin Basics][4] page of the Terraform docs to see how to plunk this
into your config. Check the [releases page][5] of this repo to get releases for
Linux, OS X, and Windows.

## Releasing
Releases are automatically setup to go out from the master branch after a build is made on master with a tag.

To perform a release simply create a tag:
` git tag -a v0.0.2 -m "Release message"`

Then push your tag:
`git push origin v0.0.2`


That's it, the build will now run and create a new release on [github](https://github.com/form3tech/ewilde/terraform-provider-runscope) :

## Usage

The following section details the use of the provider and its resources.
Expand Down
10 changes: 10 additions & 0 deletions goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
builds:
- binary: terraform-provider-runscope
goos:
- darwin
- linux
- windows
goarch:
- amd64
archive:
format: zip
2 changes: 1 addition & 1 deletion plugin/providers/runscope/resource_runscope_environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func resourceEnvironmentUpdate(d *schema.ResourceData, meta interface{}) error {
environment, &runscope.Bucket{Key: bucketId})
}
if err != nil {
return fmt.Errorf("Error updating test: %s", err)
return fmt.Errorf("Error updating environment: %s", err)
}
}

Expand Down
2 changes: 1 addition & 1 deletion vendor/github.com/ewilde/go-runscope/environment.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -613,10 +613,10 @@
"revisionTime": "2017-02-15T19:28:32Z"
},
{
"checksumSHA1": "i7sdDlIWZjuSSQ3c/zZqYYJh7Sk=",
"checksumSHA1": "98lFaa+Jyw141yGsjCwtPGtSrdo=",
"path": "github.com/ewilde/go-runscope",
"revision": "c770ca02697170500d1384d920160e70c6e51e70",
"revisionTime": "2017-11-06T10:14:59Z"
"revision": "12fd7238e7a5c70ea43fac1b905cadb13101baca",
"revisionTime": "2017-11-16T16:33:49Z"
},
{
"checksumSHA1": "1K+xrZ1PBez190iGt5OnMtGdih4=",
Expand Down

0 comments on commit 0ced15b

Please sign in to comment.