-
Notifications
You must be signed in to change notification settings - Fork 3
/
test.pipeline.yaml
43 lines (43 loc) · 937 Bytes
/
test.pipeline.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: "1.0"
stages:
- "clone"
- "build"
- "push"
- "unit"
- "integration"
steps:
main_clone:
type: "git-clone"
description: "Cloning main repository..."
repo: "edcrewe/gormcsv"
revision: "${{CF_BRANCH}}"
stage: "clone"
build:
title: "Building Docker Image"
type: "build"
image_name: "gormcsv"
tag: "0.1.0"
dockerfile: "Dockerfile"
stage: "build"
push:
title: "Pushing image to cfcr"
type: "push"
image_name: "gormcsv"
registry: "cfcr"
candidate: "${{build}}"
tags:
- "0.1.0"
- "${{CF_REVISION}}"
stage: "push"
unit:
title: Running Unit tests
image: 'r.cfcr.io/edcrewe/gormcsv:0.1.0'
stage: unit
commands:
- cd tests;go test -v
integration:
title: Running Integration tests
image: 'r.cfcr.io/edcrewe/gormcsv:0.1.0'
stage: integration
commands:
- cd tests;go test --tags=integration -v