From 0dee8615733183d6d07624da38de5d9140464c82 Mon Sep 17 00:00:00 2001 From: Paul Bonaud Date: Tue, 6 Aug 2019 14:59:37 +0200 Subject: ci: compile provider during testing phase --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f6ca131..9757a89 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,8 @@ install: - bash scripts/gogetcookie.sh script: +- make build +- mv "$GOPATH/bin/terraform-provider-mailgun" "terraform-provider-mailgun-$TRAVIS_TAG-linux_amd64" - make test - make vet - make website-test @@ -30,7 +32,7 @@ deploy: local_dir: terraform-provider-website on: branch: master - + matrix: fast_finish: true allow_failures: -- cgit v1.2.3 From a642be475aa5885f691919827f4aa976c47d9aaf Mon Sep 17 00:00:00 2001 From: Paul Bonaud Date: Tue, 6 Aug 2019 15:11:21 +0200 Subject: ci(deploy): push compiled provider as an artifact to Github releases --- .travis.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9757a89..d8f4149 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,14 +24,20 @@ script: - make website-githubpages deploy: - provider: pages - skip_cleanup: true - github_token: "$GITHUB_TOKEN" - target_branch: gh-pages - keep_history: true - local_dir: terraform-provider-website - on: - branch: master + - provider: pages + skip_cleanup: true + github_token: "$GITHUB_TOKEN" + target_branch: gh-pages + keep_history: true + local_dir: terraform-provider-website + on: + branch: master + - provider: releases + api_key: "$GITHUB_TOKEN" + file: "terraform-provider-mailgun-$TRAVIS_TAG-linux_amd64" + skip_cleanup: true + on: + tags: true matrix: fast_finish: true -- cgit v1.2.3