aboutsummaryrefslogtreecommitdiff
path: root/tests/ci/README
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-09-14 22:33:30 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-10-09 19:44:21 +0300
commite97c6b9b9c90a6f97019021d6bfcc73ed92580cc (patch)
tree3639a628d52b7b0ac6fff0eba5cf7e308921bf98 /tests/ci/README
parent1367aa09951e0aa7491bc2a5bf7209b0b47be65e (diff)
Filter packages manifest against CI request manifest in ci-load
Diffstat (limited to 'tests/ci/README')
-rw-r--r--tests/ci/README29
1 files changed, 26 insertions, 3 deletions
diff --git a/tests/ci/README b/tests/ci/README
index 14defe5..94a87b6 100644
--- a/tests/ci/README
+++ b/tests/ci/README
@@ -1,11 +1,34 @@
Prepare the test data with the following instructions.
+Create the git repository:
+
+$ mkdir hello.git
+$ git -C hello.git/ init --bare
+
+Create the project:
+
+$ bdep new -t empty hello
+$ BDEP_AUTHOR_EMAIL=user@example.org bdep new --package -t lib libhello -d hello
+$ BDEP_AUTHOR_EMAIL=user@example.org bdep new --package -t exe hello -d hello
+
+Edit hello/libhello/manifest and hello/hello/manifest files setting version to
+0.1.0.
+
+$ git -C hello remote add origin "$(pwd)/hello.git"
+$ git -C hello add '*'
+$ git -C hello commit -m "Create"
+$ git -C hello push --set-upstream origin master
+
+$ tar cf hello.tar.gz hello.git/
+
+Move the archive into tests/ci/ directory.
+
Locally run brep server configured to use ci-dir handler.
$ curl \
--form-string repository=https://git.build2.org/hello/hello.git#master \
---form-string package=hello \
http://localhost/pkg?ci
-Replace the submission data directory in brep/tests/ci/ with the one produced
-with the above command, removing all files it contains except request.manifest.
+Replace the CI request data directory in tests/ci/ with the one produced by
+the above command removing all entries it contains except request.manifest
+file.