From 91b984339508d8163378d376b7ee417088c48bce Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 14 Jan 2019 12:51:44 +0200 Subject: Update intro script with bdep-release commands --- intro2-tour | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'intro2-tour') diff --git a/intro2-tour b/intro2-tour index 1a4f21d..e73d3b0 100755 --- a/intro2-tour +++ b/intro2-tour @@ -221,10 +221,22 @@ EOF show bdep sync ?sys:libsqlite3 +cd .. + # Versioning and Release Management. # +clean +show bdep new -C hello-gcc @gcc -t exe -l c++ hello cc config.cxx=$gcc +cd hello + +git remote add origin git@github.com:boris-kolpackov/hello.git +git push origin :build2-control || true +git push -d origin v0.1.0-a.1 || true +git push -d origin v0.1.0 || true + git add . git commit -m "Initial implementation" +git push -f -u show bdep status show b info @@ -236,12 +248,13 @@ git commit -a -m "Another commit" show bdep status -sed -i -re 's/^version: .*/version: 0.1.0/' manifest -git commit -a -m "Release 0.1.0" -git remote add origin git@github.com:boris-kolpackov/hello.git -git push origin :build2-control +show bdep release --alpha --push +show bdep release --no-open --push + show bdep publish --simulate success +show bdep release --open --push + cd .. ## fi -- cgit v1.1