This repository has been archived by the owner on Feb 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 773
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: yeya24 <[email protected]>
- Loading branch information
Showing
1 changed file
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
# Golang CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-go/ for more details | ||
version: 2 | ||
# Golang CircleCI 2.1 configuration file | ||
version: 2.1 | ||
|
||
orbs: | ||
# See https://circleci.com/orbs/registry/orb/circleci/go. | ||
go: circleci/[email protected] | ||
|
||
jobs: | ||
linters-check: | ||
docker: | ||
# this image is build from Dockerfile | ||
# this image is built from Dockerfile | ||
# https://github.com/pouchcontainer/pouchlinter/blob/master/Dockerfile | ||
- image: pouchcontainer/pouchlinter:v0.2.4 | ||
working_directory: /go/src/github.com/dragonflyoss/Dragonfly | ||
steps: | ||
- checkout | ||
- go/load-cache | ||
- run: | ||
name: use markdownlint v0.5.0 to lint markdown file (https://github.com/markdownlint/markdownlint) | ||
command: | | ||
|
@@ -53,13 +57,15 @@ jobs: | |
name: boilerplate check | ||
command: | | ||
make boilerplate-check | ||
- go/save-cache | ||
|
||
unit-test-golang: | ||
docker: | ||
- image: circleci/golang:1.12.10 | ||
working_directory: /go/src/github.com/dragonflyoss/Dragonfly | ||
steps: | ||
- checkout | ||
- go/load-cache | ||
- run: | ||
name: build client | ||
command: | | ||
|
@@ -73,20 +79,23 @@ jobs: | |
- run: | ||
name: rm coverage.txt | ||
command: rm coverage.txt | ||
- go/save-cache | ||
|
||
api-integration-test: | ||
docker: | ||
- image: circleci/golang:1.12.10 | ||
working_directory: /go/src/github.com/dragonflyoss/Dragonfly | ||
steps: | ||
- checkout | ||
- go/load-cache | ||
- run: | ||
name: build dragonfly & run all integration test cases in test | ||
command: | | ||
echo "building..." | ||
make build > /dev/null | ||
echo "start integration test..." | ||
make integration-test | ||
- go/save-cache | ||
|
||
workflows: | ||
version: 2 | ||
|