spf13--cobra/.circleci/config.yml

31 lines
774 B
YAML
Raw Normal View History

2018-02-11 08:22:30 -08:00
version: 2
jobs:
2021-12-16 14:13:53 -05:00
build:
2018-02-11 08:22:30 -08:00
docker:
2021-12-16 14:13:53 -05:00
# 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:
2021-12-16 14:13:53 -05:00
name: Run tests
command: |
go test ./...
workflows:
version: 2
2021-12-16 14:13:53 -05:00
workflow:
jobs:
2021-12-16 14:13:53 -05:00
- build:
context:
- dockerhub