forked from dikhan/terraform-provider-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (33 loc) · 971 Bytes
/
.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
37
38
39
40
sudo: required
dist: trusty
language: go
go:
- "1.17.x"
services:
- docker
env:
- TF_VERSION=0.13.6 PERFORM_DOCKER_LOGIN=$TRAVIS_SECURE_ENV_VARS GO111MODULE=on
install:
- go install github.com/goreleaser/[email protected]
- wget https://releases.hashicorp.com/terraform/"$TF_VERSION"/terraform_"$TF_VERSION"_linux_amd64.zip
- unzip terraform_"$TF_VERSION"_linux_amd64.zip
- sudo mv terraform /usr/local/bin/
- rm terraform_"$TF_VERSION"_linux_amd64.zip
jobs:
include:
- stage: test
script:
- make test-all
- stage: deploy
script:
# Set up git user name and tag this commit
- git config --local user.name $GIT_USER
- git config --local user.email $GIT_USER_EMAIL
- make release-version
stages:
- name: test
if: type = pull_request OR (type = push AND branch = master)
- name: deploy
if: type = push AND branch = master
after_success:
- bash <(curl -s https://codecov.io/bash)