forked from chartbrew/chartbrew
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buddy.yml
119 lines (119 loc) · 3.55 KB
/
buddy.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
- pipeline: "Build & Lint"
trigger_mode: "ON_EVERY_PUSH"
ref_name: "*"
ref_type: "WILDCARD"
target_site_url: "https://github.com/chartbrew/chartbrew"
trigger_condition: "ALWAYS"
actions:
- action: "Execute: npm test"
type: "BUILD"
disabled: true
working_directory: "/buddy/chartbrew"
docker_image_name: "library/node"
docker_image_tag: "10"
execute_commands:
- "# yarn install"
- "npm install"
- "npm test"
setup_commands:
- "npm install -g gulp grunt-cli"
services:
- type: "MYSQL"
version: "5.7"
connection:
host: "mysql"
port: 3306
user: "root"
password: "password"
db: "chartbrewdev"
mount_filesystem_path: "/buddy/chartbrew"
shell: "BASH"
trigger_condition: "ALWAYS"
- action: "Setup the project"
type: "BUILD"
working_directory: "/buddy/chartbrew"
docker_image_name: "library/node"
docker_image_tag: "10"
execute_commands:
- "# Setup the project"
- "npm run setup"
setup_commands:
- "npm install -g gulp grunt-cli"
services:
- type: "MYSQL"
version: "5.7"
connection:
host: "mysql"
port: 3306
user: "root"
password: "password"
db: "chartbrewdev"
mount_filesystem_path: "/buddy/chartbrew"
shell: "BASH"
trigger_condition: "ALWAYS"
- action: "Linting the server code"
type: "BUILD"
working_directory: "/buddy/chartbrew"
docker_image_name: "library/node"
docker_image_tag: "10"
execute_commands:
- "# Linting the server code"
- "cd server && npm run lint"
setup_commands:
- "npm install -g gulp grunt-cli"
mount_filesystem_path: "/buddy/chartbrew"
shell: "BASH"
trigger_condition: "ALWAYS"
run_next_parallel: true
- action: "Linting the client code"
type: "BUILD"
working_directory: "/buddy/chartbrew"
docker_image_name: "library/node"
docker_image_tag: "10"
execute_commands:
- "# yarn install"
- "cd client && npm run lint"
setup_commands:
- "npm install -g gulp grunt-cli"
mount_filesystem_path: "/buddy/chartbrew"
shell: "BASH"
trigger_condition: "ALWAYS"
- action: "Building Semantic UI"
type: "BUILD"
working_directory: "/buddy/chartbrew"
docker_image_name: "library/node"
docker_image_tag: "10"
execute_commands:
- "# Building semantic"
- "cd client && cp -Rn node_modules/fomantic-ui/tasks src/semantic && cp -Rn node_modules/fomantic-ui/src src/semantic && mv src/semantic/src/_site src/semantic/src/site && mv src/semantic/src/theme.config.example src/semantic/src/theme.config && cd src/semantic && npx gulp build"
setup_commands:
- "npm install -g gulp grunt-cli"
mount_filesystem_path: "/buddy/chartbrew"
shell: "BASH"
trigger_condition: "ALWAYS"
- action: "Build the client"
type: "BUILD"
working_directory: "/buddy/chartbrew"
docker_image_name: "library/node"
docker_image_tag: "10"
execute_commands:
- "# Build the client"
- "cd client && npm run build"
setup_commands:
- "npm install -g gulp grunt-cli"
mount_filesystem_path: "/buddy/chartbrew"
shell: "BASH"
trigger_condition: "ALWAYS"
- action: "Building the docs"
type: "BUILD"
working_directory: "/buddy/chartbrew"
docker_image_name: "library/node"
docker_image_tag: "10"
execute_commands:
- "# Building the docs"
- "npm run docs:build"
setup_commands:
- "npm install -g gulp grunt-cli"
mount_filesystem_path: "/buddy/chartbrew"
shell: "BASH"
trigger_condition: "ALWAYS"