diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-08-09 00:42:46 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-08-21 13:56:36 +0300 |
commit | e3533fd4c2fc90969b77d2ddaccbda649dd74973 (patch) | |
tree | 6c25d1ee37cbe04a9bce7b846798c5d636ba7503 /tests/submit/README | |
parent | e3a8a11f7fdc64a560810cf021080c61c7d69dc5 (diff) |
Implement submit-git
Diffstat (limited to 'tests/submit/README')
-rw-r--r-- | tests/submit/README | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/submit/README b/tests/submit/README new file mode 100644 index 0000000..7286c83 --- /dev/null +++ b/tests/submit/README @@ -0,0 +1,30 @@ +Prepare the test data with the following instructions. + +In an empty directory run: + +$ bdep new -t empty -C @cfg hello +$ BDEP_EMAIL=user@example.org bdep new --package -t lib libhello -d hello +$ bdep init -d hello/libhello + +Edit hello/libhello/manifest setting version to 0.1.0. + +$ mkdir hello.git +$ git -C hello.git/ init --bare + +$ 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 brep/tests/submit/ directory. + +Locally run brep server configured to use submit-dir handler. + +$ bdep publish --control http://example.org/hello.git \ + --email user@example.org --repository http://localhost/pkg --yes \ + -d hello + +Replace the submission data directory in brep/tests/submit/ with the one +produced with the above command. |