mirror of
https://github.com/spf13/cobra
synced 2025-05-05 12:57:22 +00:00
30 lines
774 B
YAML
30 lines
774 B
YAML
version: 2
|
|
jobs:
|
|
build:
|
|
docker:
|
|
# specify the version
|
|
- image: circleci/golang:1.15
|
|
auth:
|
|
username: $DOCKERHUB_USER
|
|
password: $DOCKERHUB_PASSWORD
|
|
environment: # environment variables for primary container
|
|
DEPLOYMENT: test
|
|
|
|
#### TEMPLATE_NOTE: go expects specific checkout path representing url
|
|
#### expecting it in the form of
|
|
#### /go/src/github.com/circleci/go-tool
|
|
#### /go/src/bitbucket.org/circleci/go-tool
|
|
working_directory: /go/src/github.com/OneCloudInc/cobra
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Run tests
|
|
command: |
|
|
go test ./...
|
|
workflows:
|
|
version: 2
|
|
workflow:
|
|
jobs:
|
|
- build:
|
|
context:
|
|
- dockerhub
|