123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457 |
- # Hex plugin.
- #
- # In order to run these tests, a local Hex.pm instance must
- # be started and available on port 4000, and the HEX=1 variable
- # must be set.
- HEX_TARGETS = $(call list_targets,hex)
- .PHONY: hex $(HEX_TARGETS)
- hex: $(HEX_TARGETS)
- ifeq ($(shell netcat -z localhost 4000 && echo ok),ok)
- hex-user-create: init
- $i "Bootstrap a new OTP application named $(APP)"
- $t mkdir $(APP)/
- $t cp ../erlang.mk $(APP)/
- $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- $i "Configure a local Hex provider"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_CONFIG\n#{api_url => <<\"http://localhost:4000/api\">>}\nendef\n"}' $(APP)/Makefile
- $i "Create a Hex user"
- $t $(MAKE) -C $(APP) hex-user-create HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" HEX_EMAIL=$(APP)@noone.nope $v
- $i "Check that the user exists"
- $t curl -sf http://localhost:4000/api/users/$(APP) >/dev/null
- # @todo Fix this.
- #hex-user-create-password-with-dollar-sign: init
- #
- # $i "Bootstrap a new OTP application named $(APP)"
- # $t mkdir $(APP)/
- # $t cp ../erlang.mk $(APP)/
- # $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- #
- # $i "Configure a local Hex provider"
- # $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_CONFIG\n#{api_url => <<\"http://localhost:4000/api\">>}\nendef\n"}' $(APP)/Makefile
- #
- # $i "Create a Hex user"
- # $t $(MAKE) -C $(APP) hex-user-create HEX_USERNAME=$(APP) HEX_PASSWORD="123$$567" HEX_EMAIL=$(APP)@noone.nope $v
- #
- # $i "Check that the user exists"
- # $t curl --user "$(APP):123$$567" -sf http://localhost:4000/api/users/$(APP) >/dev/null
- # @todo Fix this.
- #hex-user-create-password-with-backslash: init
- #
- # $i "Bootstrap a new OTP application named $(APP)"
- # $t mkdir $(APP)/
- # $t cp ../erlang.mk $(APP)/
- # $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- #
- # $i "Configure a local Hex provider"
- # $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_CONFIG\n#{api_url => <<\"http://localhost:4000/api\">>}\nendef\n"}' $(APP)/Makefile
- #
- # $i "Create a Hex user"
- # $t $(MAKE) -C $(APP) hex-user-create HEX_USERNAME=$(APP) HEX_PASSWORD="123\\567" HEX_EMAIL=$(APP)@noone.nope $v
- #
- # $i "Check that the user exists"
- # $t curl --user "$(APP):123\\567" -sf http://localhost:4000/api/users/$(APP) >/dev/null
- hex-user-create-password-with-space: init
- $i "Bootstrap a new OTP application named $(APP)"
- $t mkdir $(APP)/
- $t cp ../erlang.mk $(APP)/
- $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- $i "Configure a local Hex provider"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_CONFIG\n#{api_url => <<\"http://localhost:4000/api\">>}\nendef\n"}' $(APP)/Makefile
- $i "Create a Hex user"
- $t $(MAKE) -C $(APP) hex-user-create HEX_USERNAME=$(APP) HEX_PASSWORD="123 567" HEX_EMAIL=$(APP)@noone.nope $v
- $i "Check that the user exists"
- $t curl --user "$(APP):123 567" -sf http://localhost:4000/api/users/$(APP) >/dev/null
- hex-key-add: init
- $i "Bootstrap a new OTP application named $(APP)"
- $t mkdir $(APP)/
- $t cp ../erlang.mk $(APP)/
- $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- $i "Configure a local Hex provider"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_CONFIG\n#{api_url => <<\"http://localhost:4000/api\">>}\nendef\n"}' $(APP)/Makefile
- $i "Create a Hex user"
- $t $(MAKE) -C $(APP) hex-user-create HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" HEX_EMAIL=$(APP)@noone.nope $v
- $i "Create a key for that user"
- $t $(MAKE) -C $(APP) hex-key-add HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" $v
- $i "Check that the key exists"
- $t curl --user $(APP):1234567 -sf http://localhost:4000/api/keys/$(shell hostname)-erlang-mk >/dev/null
- hex-tarball-create: init
- $i "Bootstrap a new OTP application named $(APP)"
- $t mkdir $(APP)/
- $t cp ../erlang.mk $(APP)/
- $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- $i "Create a release tarball"
- $t $(MAKE) -C $(APP) hex-tarball-create $v
- $i "Confirm the tarball contents can be extracted"
- $t cd $(APP)/.erlang.mk/ && tar xf $(APP).tar
- $i "Confirm the tarball contains a CHECKSUM file"
- $t test -f $(APP)/.erlang.mk/CHECKSUM
- $i "Confirm the tarball contains a VERSION file containing '3'"
- $t cat $(APP)/.erlang.mk/VERSION | grep -q ^3$$
- $i "Confirm the tarball contains a valid metadata.config file"
- $t $(ERL) -eval " \
- {ok, _} = file:consult(\"$(APP)/.erlang.mk/metadata.config\"), \
- halt(0)"
- $i "Confirm the tarball contains a contents.tar.gz file that can be extracted"
- $t cd $(APP)/.erlang.mk/ && tar xf contents.tar.gz
- $i "Confirm contents.tar.gz contains the expected files"
- $t printf "%s\n" \
- erlang.mk \
- Makefile \
- ebin/$(APP).app \
- src/$(APP)_app.erl \
- src/$(APP)_sup.erl | sort > $(APP)/.erlang.mk/EXPECT
- $t cd $(APP)/.erlang.mk/ && tar tf contents.tar.gz | sort | diff EXPECT -
- hex-tarball-create-with-deps: init
- $i "Bootstrap a new OTP application named $(APP)"
- $t mkdir $(APP)/
- $t cp ../erlang.mk $(APP)/
- $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- $i "Add Cowlib to the list of dependencies"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = cowlib\ndep_cowlib_commit = 2.10.1\n"}' $(APP)/Makefile
- ifdef LEGACY
- $i "Add Cowlib to the applications key in the .app.src file"
- $t perl -ni.bak -e 'print;if ($$.==7) {print "\t\tcowlib,\n"}' $(APP)/src/$(APP).app.src
- endif
- $i "Create a release tarball"
- $t $(MAKE) -C $(APP) hex-tarball-create $v
- $i "Confirm the tarball contents can be extracted"
- $t cd $(APP)/.erlang.mk/ && tar xf $(APP).tar
- $i "Confirm the tarball contains a metadata.config file that lists Cowlib as requirement"
- $t $(ERL) -eval " \
- {ok, Metadata} = file:consult(\"$(APP)/.erlang.mk/metadata.config\"), \
- {_, [{<<\"cowlib\">>, Cowlib}]} = lists:keyfind(<<\"requirements\">>, 1, Metadata), \
- {_, <<\"cowlib\">>} = lists:keyfind(<<\"app\">>, 1, Cowlib), \
- {_, false} = lists:keyfind(<<\"optional\">>, 1, Cowlib), \
- {_, <<\"2.10.1\">>} = lists:keyfind(<<\"requirement\">>, 1, Cowlib), \
- halt(0)"
- hex-release-publish: init
- $i "Bootstrap a new OTP application named $(APP)"
- $t mkdir $(APP)/
- $t cp ../erlang.mk $(APP)/
- $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- $i "Configure a local Hex provider"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_CONFIG\n#{api_url => <<\"http://localhost:4000/api\">>}\nendef\n"}' $(APP)/Makefile
- $i "Add extra Hex metadata"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_TARBALL_EXTRA_METADATA\n#{licenses => [<<\"ISC\">>]}\nendef\n"}' $(APP)/Makefile
- $i "Create a Hex user"
- $t $(MAKE) -C $(APP) hex-user-create HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" HEX_EMAIL=$(APP)@noone.nope $v
- $i "Create a key for that user"
- $t $(MAKE) -C $(APP) hex-key-add HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" | grep ^Secret: | cut -f2 -d" " > $(APP)/hex.key
- $i "Publish the release"
- $t $(MAKE) -C $(APP) hex-release-publish HEX_SECRET=`cat $(APP)/hex.key` $v
- $i "Check that the release exists"
- $t curl -sf http://localhost:4000/api/packages/$(APP)/releases/0.1.0 >/dev/null
- hex-release-publish-with-deps: init
- $i "Bootstrap a new OTP application named $(APP)"
- $t mkdir $(APP)/
- $t cp ../erlang.mk $(APP)/
- $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- $i "Add Cowlib to the list of dependencies"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = cowlib\ndep_cowlib_commit = 2.10.1\n"}' $(APP)/Makefile
- ifdef LEGACY
- $i "Add Cowlib to the applications key in the .app.src file"
- $t perl -ni.bak -e 'print;if ($$.==7) {print "\t\tcowlib,\n"}' $(APP)/src/$(APP).app.src
- endif
- $i "Build the application"
- $t $(MAKE) -C $(APP) $v
- $i "Configure a local Hex provider for Cowlib"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_CONFIG\n#{api_url => <<\"http://localhost:4000/api\">>}\nendef\n"}' $(APP)/deps/cowlib/Makefile
- $i "Configure a local Hex provider"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_CONFIG\n#{api_url => <<\"http://localhost:4000/api\">>}\nendef\n"}' $(APP)/Makefile
- $i "Add extra Hex metadata"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_TARBALL_EXTRA_METADATA\n#{licenses => [<<\"ISC\">>]}\nendef\n"}' $(APP)/Makefile
- $i "Create a Hex user"
- $t $(MAKE) -C $(APP) hex-user-create HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" HEX_EMAIL=$(APP)@noone.nope $v
- $i "Create a key for that user"
- $t $(MAKE) -C $(APP) hex-key-add HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" | grep ^Secret: | cut -f2 -d" " > $(APP)/hex.key
- $i "Publish the Cowlib release"
- $t $(MAKE) -C $(APP)/deps/cowlib hex-release-publish HEX_SECRET=`cat $(APP)/hex.key` $v
- $i "Publish the release"
- $t $(MAKE) -C $(APP) hex-release-publish HEX_SECRET=`cat $(APP)/hex.key` $v
- $i "Check that the release exists and includes Cowlib as requirement"
- $t curl -sf http://localhost:4000/api/packages/$(APP)/releases/0.1.0 | grep -q cowlib
- hex-release-replace: init
- $i "Bootstrap a new OTP application named $(APP)"
- $t mkdir $(APP)/
- $t cp ../erlang.mk $(APP)/
- $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- $i "Configure a local Hex provider"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_CONFIG\n#{api_url => <<\"http://localhost:4000/api\">>}\nendef\n"}' $(APP)/Makefile
- $i "Add extra Hex metadata"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_TARBALL_EXTRA_METADATA\n#{licenses => [<<\"ISC\">>]}\nendef\n"}' $(APP)/Makefile
- $i "Create a Hex user"
- $t $(MAKE) -C $(APP) hex-user-create HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" HEX_EMAIL=$(APP)@noone.nope $v
- $i "Create a key for that user"
- $t $(MAKE) -C $(APP) hex-key-add HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" | grep ^Secret: | cut -f2 -d" " > $(APP)/hex.key
- $i "Publish the release"
- $t $(MAKE) -C $(APP) hex-release-publish HEX_SECRET=`cat $(APP)/hex.key` $v
- $i "Update the project description"
- $t sed -i.bak s/"PROJECT_DESCRIPTION = New project"/"PROJECT_DESCRIPTION = Best project"/ $(APP)/Makefile
- $i "Publish the release again, replacing the existing one"
- $t $(MAKE) -C $(APP) hex-release-replace HEX_SECRET=`cat $(APP)/hex.key` $v
- $i "Check that the release was replaced"
- $t curl -sf http://localhost:4000/api/packages/$(APP) | grep -q "Best project"
- hex-release-delete: init
- $i "Bootstrap a new OTP application named $(APP)"
- $t mkdir $(APP)/
- $t cp ../erlang.mk $(APP)/
- $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- $i "Configure a local Hex provider"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_CONFIG\n#{api_url => <<\"http://localhost:4000/api\">>}\nendef\n"}' $(APP)/Makefile
- $i "Add extra Hex metadata"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_TARBALL_EXTRA_METADATA\n#{licenses => [<<\"ISC\">>]}\nendef\n"}' $(APP)/Makefile
- $i "Create a Hex user"
- $t $(MAKE) -C $(APP) hex-user-create HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" HEX_EMAIL=$(APP)@noone.nope $v
- $i "Create a key for that user"
- $t $(MAKE) -C $(APP) hex-key-add HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" | grep ^Secret: | cut -f2 -d" " > $(APP)/hex.key
- $i "Publish the release"
- $t $(MAKE) -C $(APP) hex-release-publish HEX_SECRET=`cat $(APP)/hex.key` $v
- $i "Delete the release"
- $t $(MAKE) -C $(APP) hex-release-delete HEX_SECRET=`cat $(APP)/hex.key` $v
- $i "Check that the release was deleted"
- $t ! curl -sf http://localhost:4000/api/packages/$(APP)/releases/0.1.0 >/dev/null
- hex-release-retire: init
- $i "Bootstrap a new OTP application named $(APP)"
- $t mkdir $(APP)/
- $t cp ../erlang.mk $(APP)/
- $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- $i "Configure a local Hex provider"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_CONFIG\n#{api_url => <<\"http://localhost:4000/api\">>}\nendef\n"}' $(APP)/Makefile
- $i "Add extra Hex metadata"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_TARBALL_EXTRA_METADATA\n#{licenses => [<<\"ISC\">>]}\nendef\n"}' $(APP)/Makefile
- $i "Create a Hex user"
- $t $(MAKE) -C $(APP) hex-user-create HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" HEX_EMAIL=$(APP)@noone.nope $v
- $i "Create a key for that user"
- $t $(MAKE) -C $(APP) hex-key-add HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" | grep ^Secret: | cut -f2 -d" " > $(APP)/hex.key
- $i "Publish the release"
- $t $(MAKE) -C $(APP) hex-release-publish HEX_SECRET=`cat $(APP)/hex.key` $v
- $i "Retire the release"
- $t $(MAKE) -C $(APP) hex-release-retire HEX_SECRET=`cat $(APP)/hex.key` $v
- $i "Check that the release was retired"
- $t ! curl -sf http://localhost:4000/api/packages/$(APP)/releases/0.1.0 | grep -q \"retirement\":null
- hex-release-unretire: init
- $i "Bootstrap a new OTP application named $(APP)"
- $t mkdir $(APP)/
- $t cp ../erlang.mk $(APP)/
- $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- $i "Configure a local Hex provider"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_CONFIG\n#{api_url => <<\"http://localhost:4000/api\">>}\nendef\n"}' $(APP)/Makefile
- $i "Add extra Hex metadata"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_TARBALL_EXTRA_METADATA\n#{licenses => [<<\"ISC\">>]}\nendef\n"}' $(APP)/Makefile
- $i "Create a Hex user"
- $t $(MAKE) -C $(APP) hex-user-create HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" HEX_EMAIL=$(APP)@noone.nope $v
- $i "Create a key for that user"
- $t $(MAKE) -C $(APP) hex-key-add HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" | grep ^Secret: | cut -f2 -d" " > $(APP)/hex.key
- $i "Publish the release"
- $t $(MAKE) -C $(APP) hex-release-publish HEX_SECRET=`cat $(APP)/hex.key` $v
- $i "Retire the release"
- $t $(MAKE) -C $(APP) hex-release-retire HEX_SECRET=`cat $(APP)/hex.key` $v
- $i "Unretire the release"
- $t $(MAKE) -C $(APP) hex-release-unretire HEX_SECRET=`cat $(APP)/hex.key` $v
- $i "Check that the release is no longer retired"
- $t curl -sf http://localhost:4000/api/packages/$(APP)/releases/0.1.0 | grep -q \"retirement\":null
- hex-docs-tarball-create: init
- $i "Bootstrap a new OTP application named $(APP)"
- $t mkdir $(APP)/
- $t cp ../erlang.mk $(APP)/
- $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- $i "Generate a doc/overview.edoc file"
- $t mkdir $(APP)/doc
- $t printf "%s\n" \
- "@author R. J. Hacker <rjh@acme.com>" \
- "@copyright 2007 R. J. Hacker" \
- "@version 1.0.0" \
- "@title Welcome to the 'frob' application!" \
- "@doc 'frob' is a highly advanced frobnicator with low latency," > $(APP)/doc/overview.edoc
- $i "Create a docs tarball"
- $t $(MAKE) -C $(APP) hex-docs-tarball-create $v
- $i "Confirm the tarball contents can be extracted"
- $t cd $(APP)/.erlang.mk/ && tar xf $(APP)-docs.tar.gz
- $i "Confirm the tarball contains the expected files"
- $t printf "%s\n" \
- edoc-info \
- erlang.png \
- index.html \
- modules-frame.html \
- overview-summary.html \
- overview.edoc \
- stylesheet.css \
- $(APP)_app.html \
- $(APP)_sup.html | sort > $(APP)/.erlang.mk/EXPECT
- $t cd $(APP)/.erlang.mk/ && tar tf $(APP)-docs.tar.gz | sort | diff EXPECT -
- hex-docs-publish: init
- $i "Bootstrap a new OTP application named $(APP)"
- $t mkdir $(APP)/
- $t cp ../erlang.mk $(APP)/
- $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- $i "Generate a doc/overview.edoc file"
- $t mkdir $(APP)/doc
- $t printf "%s\n" \
- "@author R. J. Hacker <rjh@acme.com>" \
- "@copyright 2007 R. J. Hacker" \
- "@version 1.0.0" \
- "@title Welcome to the 'frob' application!" \
- "@doc 'frob' is a highly advanced frobnicator with low latency," > $(APP)/doc/overview.edoc
- $i "Configure a local Hex provider"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_CONFIG\n#{api_url => <<\"http://localhost:4000/api\">>}\nendef\n"}' $(APP)/Makefile
- $i "Add extra Hex metadata"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_TARBALL_EXTRA_METADATA\n#{licenses => [<<\"ISC\">>]}\nendef\n"}' $(APP)/Makefile
- $i "Create a Hex user"
- $t $(MAKE) -C $(APP) hex-user-create HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" HEX_EMAIL=$(APP)@noone.nope $v
- $i "Create a key for that user"
- $t $(MAKE) -C $(APP) hex-key-add HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" | grep ^Secret: | cut -f2 -d" " > $(APP)/hex.key
- $i "Publish the release"
- $t $(MAKE) -C $(APP) hex-release-publish HEX_SECRET=`cat $(APP)/hex.key` $v
- $i "Publish the documentation for the release"
- $t $(MAKE) -C $(APP) hex-docs-publish HEX_SECRET=`cat $(APP)/hex.key` $v
- # @todo hex-docs-publish when there are no docs
- hex-docs-delete: init
- $i "Bootstrap a new OTP application named $(APP)"
- $t mkdir $(APP)/
- $t cp ../erlang.mk $(APP)/
- $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- $i "Generate a doc/overview.edoc file"
- $t mkdir $(APP)/doc
- $t printf "%s\n" \
- "@author R. J. Hacker <rjh@acme.com>" \
- "@copyright 2007 R. J. Hacker" \
- "@version 1.0.0" \
- "@title Welcome to the 'frob' application!" \
- "@doc 'frob' is a highly advanced frobnicator with low latency," > $(APP)/doc/overview.edoc
- $i "Configure a local Hex provider"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_CONFIG\n#{api_url => <<\"http://localhost:4000/api\">>}\nendef\n"}' $(APP)/Makefile
- $i "Add extra Hex metadata"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "define HEX_TARBALL_EXTRA_METADATA\n#{licenses => [<<\"ISC\">>]}\nendef\n"}' $(APP)/Makefile
- $i "Create a Hex user"
- $t $(MAKE) -C $(APP) hex-user-create HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" HEX_EMAIL=$(APP)@noone.nope $v
- $i "Create a key for that user"
- $t $(MAKE) -C $(APP) hex-key-add HEX_USERNAME=$(APP) HEX_PASSWORD="1234567" | grep ^Secret: | cut -f2 -d" " > $(APP)/hex.key
- $i "Publish the release"
- $t $(MAKE) -C $(APP) hex-release-publish HEX_SECRET=`cat $(APP)/hex.key` $v
- $i "Publish the documentation for the release"
- $t $(MAKE) -C $(APP) hex-docs-publish HEX_SECRET=`cat $(APP)/hex.key` $v
- $i "Delete the documentation for the release"
- $t $(MAKE) -C $(APP) hex-docs-delete HEX_SECRET=`cat $(APP)/hex.key` $v
- endif
|