Skip to content

Commit 0cd3ced

Browse files
committed
added .gocd.yml
1 parent 643c1c3 commit 0cd3ced

1 file changed

Lines changed: 83 additions & 0 deletions

File tree

.gocd.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# vim:ts=2:sts=2:sw=2:et
2+
#
3+
# Author: Hari Sekhon
4+
# Date: 2020-03-21 11:14:07 +0000 (Sat, 21 Mar 2020)
5+
#
6+
# https://github.com/harisekhon/devops-python-tools
7+
#
8+
# License: see accompanying Hari Sekhon LICENSE file
9+
#
10+
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help improve or steer this or other code I publish
11+
#
12+
# https://www.linkedin.com/in/harisekhon
13+
#
14+
15+
# https://github.com/tomzo/gocd-yaml-config-plugin#setup
16+
17+
# https://docs.gocd.org/current/configuration/configuration_reference.html
18+
19+
format_version: 3
20+
pipelines:
21+
devops-python-tools:
22+
group: defaultGroup
23+
label_template: ${COUNT}
24+
lock_behavior: none
25+
display_order: -1
26+
materials:
27+
git:
28+
git: https://github.com/harisekhon/devops-python-tools
29+
shallow_clone: false
30+
auto_update: true
31+
branch: master
32+
stages:
33+
- build-and-test:
34+
fetch_materials: true
35+
keep_artifacts: false
36+
clean_workspace: false
37+
approval:
38+
type: success
39+
allow_only_on_success: false
40+
jobs:
41+
apt-update:
42+
timeout: 10
43+
tasks:
44+
- exec:
45+
command: apt
46+
arguments:
47+
- update
48+
run_if: passed
49+
install-make:
50+
timeout: 10
51+
tasks:
52+
- exec:
53+
command: apt
54+
arguments:
55+
- install
56+
- -qy
57+
- git
58+
- make
59+
run_if: passed
60+
init:
61+
timeout: 10
62+
tasks:
63+
- exec:
64+
command: make
65+
arguments:
66+
- init
67+
run_if: passed
68+
build:
69+
timeout: 60
70+
tasks:
71+
- exec:
72+
command: make
73+
arguments:
74+
- ci
75+
run_if: passed
76+
test:
77+
timeout: 60
78+
tasks:
79+
- exec:
80+
command: make
81+
arguments:
82+
- test
83+
run_if: passed

0 commit comments

Comments
 (0)