-
Notifications
You must be signed in to change notification settings - Fork 0
/
skwid.yaml
46 lines (43 loc) · 1.17 KB
/
skwid.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
44
45
46
variables:
workdir: ~/workdir/blub
testArray:
- value: 4
- value: 5
- value: 6
tasks:
show:
description: Show different stuff.
children:
info:
description: Show the package info
jobs:
- name: Declaring global task variables
type: declare
variables:
projectName: test
version: "1.0.0"
- name: Repeating print for 'testArray'
type: repeat
forEach: item
of: '${testArray}'
index: iteration
jobs:
- name: ${item.value} - Print vars for item
type: command
command: echo ${iteration} - ${item.value} - ${projectName} - ${version} - ${workdir} - ${SHELL}
build:
description: Build this project
jobs:
- name: Setting environment variables
type: declare
variables:
project: blub
build: false
- name: Build Project if blub is set
type: condition
condition: ${build}
jobs:
- name: Print env
type: command
command: printenv
workingDirectory: ./test