Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
add cache in circleci
Browse files Browse the repository at this point in the history
Signed-off-by: yeya24 <[email protected]>
  • Loading branch information
yeya24 committed Nov 12, 2019
1 parent dfd3a8c commit 189a6cc
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .circleci/config.yml
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: |
Expand Down Expand Up @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit 189a6cc

Please sign in to comment.