summaryrefslogtreecommitdiff
path: root/intro2-tour
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-01-14 12:51:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-01-14 12:51:44 +0200
commit91b984339508d8163378d376b7ee417088c48bce (patch)
treeebbffc999828bc79a89ebca892dc476f11875462 /intro2-tour
parentdc7697839714cba6f05eec0d87adc213a878082e (diff)
Update intro script with bdep-release commands
Diffstat (limited to 'intro2-tour')
-rwxr-xr-xintro2-tour21
1 files changed, 17 insertions, 4 deletions
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