mirror of
https://github.com/jimeh/casecmp.git
synced 2026-02-19 10:26:40 +00:00
chore(go): update project for go 1.16 (modules, etc)
This commit is contained in:
@@ -2,17 +2,13 @@ version: 2
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: circleci/golang:1.10
|
||||
- image: circleci/golang:1.16
|
||||
working_directory: /go/src/github.com/jimeh/casecmp
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Install tools
|
||||
command: |
|
||||
curl -L https://github.com/golang/dep/raw/master/install.sh | sh
|
||||
- run:
|
||||
name: Install dependencies
|
||||
command: dep ensure
|
||||
command: go mod download
|
||||
- run:
|
||||
name: Build binary
|
||||
command: make
|
||||
@@ -27,18 +23,17 @@ jobs:
|
||||
http://localhost:8080/
|
||||
release:
|
||||
docker:
|
||||
- image: circleci/golang:1.10
|
||||
- image: circleci/golang:1.16
|
||||
working_directory: /go/src/github.com/jimeh/casecmp
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Install tools
|
||||
command: |
|
||||
curl -L https://github.com/golang/dep/raw/master/install.sh | sh
|
||||
go get github.com/goreleaser/goreleaser
|
||||
- run:
|
||||
name: Install dependencies
|
||||
command: dep ensure
|
||||
command: go mod download
|
||||
- run:
|
||||
name: Run goreleaser
|
||||
command: goreleaser
|
||||
@@ -51,7 +46,7 @@ workflows:
|
||||
branches:
|
||||
only: /.*/
|
||||
tags:
|
||||
ignore: /^[0-9]+(\.[0-9]+)*/
|
||||
ignore: /^v[0-9]+(\.[0-9]+)*/
|
||||
build-and-release:
|
||||
jobs:
|
||||
- build:
|
||||
@@ -59,7 +54,7 @@ workflows:
|
||||
branches:
|
||||
ignore: /.*/
|
||||
tags:
|
||||
only: /^[0-9]+(\.[0-9]+)*/
|
||||
only: /^v[0-9]+(\.[0-9]+)*/
|
||||
- release:
|
||||
requires:
|
||||
- build
|
||||
@@ -67,4 +62,4 @@ workflows:
|
||||
branches:
|
||||
ignore: /.*/
|
||||
tags:
|
||||
only: /^[0-9]+(\.[0-9]+)*/
|
||||
only: /^v[0-9]+(\.[0-9]+)*/
|
||||
|
||||
Reference in New Issue
Block a user