summaryrefslogtreecommitdiff
path: root/gitlab.yaml
diff options
context:
space:
mode:
authorLars Wirzenius <lwirzenius@wikimedia.org>2019-07-26 15:59:10 +0300
committerLars Wirzenius <lwirzenius@wikimedia.org>2019-07-26 15:59:10 +0300
commitb78ba2ebe6be71ed33e3af51b0d05c3e9ced18d7 (patch)
tree8186fd7cf1176508be91e0c9155856cd1de226e7 /gitlab.yaml
parent71d355f1a4185e64ece9c95be20b517f4574f894 (diff)
downloadwmf-ci-arch-b78ba2ebe6be71ed33e3af51b0d05c3e9ced18d7.tar.gz
Add: fable tests for prototype CI
Diffstat (limited to 'gitlab.yaml')
-rw-r--r--gitlab.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/gitlab.yaml b/gitlab.yaml
new file mode 100644
index 0000000..81fb6ad
--- /dev/null
+++ b/gitlab.yaml
@@ -0,0 +1,26 @@
+- given: a git repository (?P<url>\S+) with a simple C program
+ function: nop
+
+- then: the output is "(?P<expected>.+)"
+ function: stdout_is
+
+- then: HTTP status code is (?P<code>\d+)
+ function: status_code_is
+
+- then: response body indicates (?P<name>\S+) is (?P<status>\S+)
+ function: build_status_is
+
+- when: I check build status
+ function: get_build_status
+
+- when: I retrieve (?P<url>\S+) to a local file (?P<filename>\S+)
+ function: get_file
+
+- when: I run (?P<filename>\./\S+)
+ function: run_file
+
+- when: I trigger a build with (?P<body>\{.+\})
+ function: trigger_build
+
+- when: I wait for (?P<seconds>\d+) seconds
+ function: wait