Skip to content

Commit

Permalink
Upgrade to go 1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
yngveh committed Apr 5, 2020
1 parent 80771d4 commit 9ea9c3d
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 46 deletions.
90 changes: 45 additions & 45 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,61 +3,61 @@ version: 2
jobs:
build:
docker:
- image: circleci/golang:1.13
- image: circleci/golang:1.14

steps:
- checkout
- run:
name: Bootstrap build
command: make bootstrap
- run:
name: Run tests
command: gotestsum --junitfile unit-tests.xml
- store_test_results:
path: .
- run:
name: Building release binaries
command: make release
- persist_to_workspace:
root: .
paths:
- _dist
- checkout
- run:
name: Bootstrap build
command: make bootstrap
- run:
name: Run tests
command: gotestsum --junitfile unit-tests.xml
- store_test_results:
path: .
- run:
name: Building release binaries
command: make release
- persist_to_workspace:
root: .
paths:
- _dist

release:
docker:
- image: circleci/golang:1.13
- image: circleci/golang:1.14

steps:
- checkout
- run:
name: Run go get
command: go get github.com/tcnksm/ghr
- attach_workspace:
at: .
- run:
name: Upload artifacts to GitHub
command: |
GIT_TAG=`git describe --tags`
if [[ $GIT_TAG = *"-"* ]]; then
ghr -t $GITHUB_TOKEN --prerelease `git describe --tags` _dist/
else
ghr -t $GITHUB_TOKEN `git describe --tags` _dist/
fi
- checkout
- run:
name: Run go get
command: go get github.com/tcnksm/ghr
- attach_workspace:
at: .
- run:
name: Upload artifacts to GitHub
command: |
GIT_TAG=`git describe --tags`
if [[ $GIT_TAG = *"-"* ]]; then
ghr -t $GITHUB_TOKEN --prerelease `git describe --tags` _dist/
else
ghr -t $GITHUB_TOKEN `git describe --tags` _dist/
fi
workflows:
version: 2

build_and_release:
jobs:
- build:
filters:
tags:
only: /.*/
- release:
requires:
- build
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- build:
filters:
tags:
only: /.*/
- release:
requires:
- build
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## 0.6.0 (Not released)

- Upgraded to go 1.14
- Fixed issue #26 Fail if module does not exist

## 0.5.0 (12. March 2020)

- Added `--destroy` option for `plan` command to create plan to destroy all resources
- Use go-cmd dependency instead of forked version

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/avinor/tau

go 1.13
go 1.14

require (
github.com/MakeNowJust/heredoc v1.0.0
Expand Down

0 comments on commit 9ea9c3d

Please sign in to comment.