forked from nlamirault/terraform-provider-pingdom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (36 loc) · 1.09 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
language: go
go:
- '1.12.x'
- '1.13.x'
- master
env:
- GO111MODULE=on
matrix:
allow_failures:
- go: master
install:
- export TF_LOG=INFO
- go get
script:
- make test build
before_deploy:
- go get github.com/mitchellh/gox
- export TARGET_OS="freebsd darwin linux windows"
- export TARGET_ARCH="386 amd64"
# rename to match terraform provider conventions:
# https://www.terraform.io/docs/configuration/providers.html#third-party-plugins
- export FILE_NAME="terraform-provider-pingdom_${TRAVIS_TAG}_{{.OS}}_{{.Arch}}"
- gox -os "$TARGET_OS" -arch "$TARGET_ARCH" -output="$FILE_NAME"
- CGO_ENABLED=0 gox -os "$TARGET_OS" -arch "$TARGET_ARCH" -output="${FILE_NAME}_static"
deploy:
provider: releases
api_key:
secure: DAyi03tk9UxBFZUh9x5W5mtlHJWVi62fY4bpMugcQvF7rvwMYBHH5SHEpjswnZEO6G/dWZrHI4taZryBroXzASKl9GEMrzUylyrn4sFztdIHI3rZwON4OpwPsQ4uSuC3hcGkM+J2syb3gaEWUwUb9OHwv8GNaC2PkyHLAfBqJZs=
file: terraform-provider-pingdom*
skip_cleanup: true
file_glob: true
on:
tags: true
branch: master
go: '1.13.x'
repo: russellcardullo/terraform-provider-pingdom