mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
ci: comment some stuff
This commit is contained in:
parent
74444ae328
commit
0bb696a24e
1 changed files with 9 additions and 0 deletions
|
|
@ -1,9 +1,12 @@
|
||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
|
# global environment variables
|
||||||
|
# '& ' syntax is a YAML thing for creating referenceable documents
|
||||||
env-shared: &env-shared
|
env-shared: &env-shared
|
||||||
environment:
|
environment:
|
||||||
GOFLAGS: "-mod=vendor"
|
GOFLAGS: "-mod=vendor"
|
||||||
|
|
||||||
|
# build steps shared across different jobs
|
||||||
build-shared: &build-shared
|
build-shared: &build-shared
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
@ -23,6 +26,7 @@ build-shared: &build-shared
|
||||||
go test -v ./...
|
go test -v ./...
|
||||||
- run:
|
- run:
|
||||||
name: Get gox
|
name: Get gox
|
||||||
|
# -mod=vendor doesn't work with go get while in source tree with go.mod in it
|
||||||
working_directory: "/tmp"
|
working_directory: "/tmp"
|
||||||
command: |
|
command: |
|
||||||
go get github.com/mitchellh/gox
|
go get github.com/mitchellh/gox
|
||||||
|
|
@ -36,6 +40,9 @@ build-shared: &build-shared
|
||||||
- ~/.cache/go-build
|
- ~/.cache/go-build
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
# matrix build jobs run on every commit
|
||||||
|
# building on versioned Go and the latest one
|
||||||
|
# '<<: *' syntax is a YAML thing for including documents
|
||||||
"golang:1.12":
|
"golang:1.12":
|
||||||
<<: *env-shared
|
<<: *env-shared
|
||||||
<<: *build-shared
|
<<: *build-shared
|
||||||
|
|
@ -46,6 +53,7 @@ jobs:
|
||||||
<<: *build-shared
|
<<: *build-shared
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:latest
|
- image: circleci/golang:latest
|
||||||
|
# release job run only when a commit is tagged
|
||||||
release:
|
release:
|
||||||
<<: *env-shared
|
<<: *env-shared
|
||||||
docker:
|
docker:
|
||||||
|
|
@ -79,6 +87,7 @@ workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build:
|
build:
|
||||||
jobs:
|
jobs:
|
||||||
|
# build matrix
|
||||||
- "golang:1.12"
|
- "golang:1.12"
|
||||||
- "golang:latest"
|
- "golang:latest"
|
||||||
release:
|
release:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue