-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestserver.yml
105 lines (105 loc) · 2.77 KB
/
testserver.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
global:
host: 0.0.0.0
port: 9999
debug: true
features_preview:
advanced_terminal_output: true
integrations:
enabled: true
tilt:
enabled: true
applications:
- name: Test Server
remote: https://github.com/wufe/polo-testserver
disable_terminal_prompt: false
is_default: true
commands:
start:
- command: docker build --no-cache -t polo-testserver:{{commit}} .
- command: docker run -p {{port}}:3000 -d polo-testserver:{{commit}}
output_variable: container_id
- command: docker image prune -f
continue_on_error: true
stop:
- command: "docker kill {{container_id}}"
continue_on_error: true
healthcheck:
retry_interval: 2
recycle:
inactivity_timeout: 6000
startup:
retries: 5
forwards:
- pattern: ^/fwd\-test$
to: /fwd-dest-test
branches:
- test: ^main$
- test: feature/my-watched-feature
watch: false
fetch:
interval: 10
- name: Test-server2
remote: "https://github.com/wufe/polo-testserver"
is_default: false
commands:
start:
- command: docker build --no-cache -t polo-testserver:{{commit}} .
- command: docker run -p {{port}}:3000 -d polo-testserver:{{commit}}
output_variable: container_id
- command: docker image prune -f
continue_on_error: true
stop:
- command: "docker kill {{container_id}}"
continue_on_error: true
recycle:
inactivity_timeout: 6000
startup:
retries: 5
branches:
- test: ^dev$
watch: false
main: false
commands:
start:
- command: nonexisting.exe
- test: feature/my-watched-feature
watch: false
- name: todo-mvc
remote: https://github.com/Wufe/todomvc
fetch:
interval: 10
is_default: false
startup:
retries: 3
commands:
start:
- command: docker build -t todo-mvc:{{commit}} .
- command: docker run -p {{port}}:80 -d todo-mvc:{{commit}}
output_variable: container_id
stop:
- command: "docker kill {{container_id}}"
continue_on_error: true
clean:
- command: docker rm -f {{container_id}}
continue_on_error: true
- command: docker image prune -f -a --filter label=name=todo-mvc
recycle:
inactivity_timeout: 360
healthcheck:
max_retries: 2
retry_interval: 5
retry_timeout: 10
# - name: test
# remote: https://[email protected]/bembi/test.git
# fetch:
# interval: 10
# is_default: false
# startup:
# retries: 3
# commands:
# start:
# - command: sleep 1
# stop:
# - command: sleep 1
# clean:
# - command: sleep 1