Skip to content

Commit c4e0d47

Browse files
authored
Merge pull request #17 from packetloop/add-osx-build
Added freebsd, darwin, linux, windows, 386, and amd64 to build targets.
2 parents 7991bae + 7992aee commit c4e0d47

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.travis.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,14 @@ install:
1515
- ./elasticsearch-${ES_VERSION}/bin/elasticsearch -Epath.repo=/tmp &
1616
- export ELASTICSEARCH_URL=http://127.0.0.1:9200
1717
- export TF_LOG=INFO
18+
- go get github.com/mitchellh/gox
1819
- go get -v github.com/Masterminds/glide
1920
- cd $GOPATH/src/github.com/Masterminds/glide && git checkout v0.13.1 && go install && cd -
2021
- glide install
2122
script:
22-
- go build -v
23+
- gox -os "freebsd darwin linux windows" -arch "386 amd64" -output="terraform-provider-elasticsearch_${TRAVIS_TAG}_{{.OS}}_{{.Arch}}"
2324
- wget -q --waitretry=1 --retry-connrefused -T 10 -O - $ELASTICSEARCH_URL
2425
- TF_ACC=1 go test -v -cover
25-
before_deploy: |
26-
# rename to match terraform provider conventions:
27-
# https://www.terraform.io/docs/configuration/providers.html#third-party-plugins
28-
mv terraform-provider-elasticsearch "terraform-provider-elasticsearch_${TRAVIS_TAG}"
2926
deploy:
3027
provider: releases
3128
api_key:

0 commit comments

Comments
 (0)