Skip to content

Commit

Permalink
Merge pull request #17 from packetloop/add-osx-build
Browse files Browse the repository at this point in the history
Added freebsd, darwin, linux, windows, 386, and amd64 to build targets.
  • Loading branch information
phillbaker authored Mar 11, 2019
2 parents 7991bae + 7992aee commit c4e0d47
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,14 @@ install:
- ./elasticsearch-${ES_VERSION}/bin/elasticsearch -Epath.repo=/tmp &
- export ELASTICSEARCH_URL=http://127.0.0.1:9200
- export TF_LOG=INFO
- go get github.com/mitchellh/gox
- go get -v github.com/Masterminds/glide
- cd $GOPATH/src/github.com/Masterminds/glide && git checkout v0.13.1 && go install && cd -
- glide install
script:
- go build -v
- gox -os "freebsd darwin linux windows" -arch "386 amd64" -output="terraform-provider-elasticsearch_${TRAVIS_TAG}_{{.OS}}_{{.Arch}}"
- wget -q --waitretry=1 --retry-connrefused -T 10 -O - $ELASTICSEARCH_URL
- TF_ACC=1 go test -v -cover
before_deploy: |
# rename to match terraform provider conventions:
# https://www.terraform.io/docs/configuration/providers.html#third-party-plugins
mv terraform-provider-elasticsearch "terraform-provider-elasticsearch_${TRAVIS_TAG}"
deploy:
provider: releases
api_key:
Expand Down

0 comments on commit c4e0d47

Please sign in to comment.