diff options
author | Loïc Hoguin <[email protected]> | 2020-11-10 15:59:32 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-11-17 17:50:46 +0100 |
commit | c8f8ff0ccac5c379ce44428d7c1fc272f21d8578 (patch) | |
tree | fb84954e1cdd979ba7f75ed0eb47e3b01771b5ac /test | |
parent | 6c8aa152a39ba285ad6852208574e231dd07dd34 (diff) | |
download | erlang.mk-c8f8ff0ccac5c379ce44428d7c1fc272f21d8578.tar.gz erlang.mk-c8f8ff0ccac5c379ce44428d7c1fc272f21d8578.tar.bz2 erlang.mk-c8f8ff0ccac5c379ce44428d7c1fc272f21d8578.zip |
WIP publish
Diffstat (limited to 'test')
-rw-r--r-- | test/core_deps.mk | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/test/core_deps.mk b/test/core_deps.mk index f83caf3..2aa3312 100644 --- a/test/core_deps.mk +++ b/test/core_deps.mk @@ -594,25 +594,39 @@ endif core-deps-fetch-hex: init - $i "Bootstrap a new OTP library named $(APP)" + $i "Bootstrap a new OTP application named $(APP)" $t mkdir $(APP)/ $t cp ../erlang.mk $(APP)/ - $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v + $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v $i "Add hex_core to the list of build dependencies" - $t perl -ni.bak -e 'print;if ($$.==1) {print "BUILD_DEPS += hex_core\n"}' $(APP)/Makefile + $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 Cowboy 1.0.0 to the list of dependencies" - $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = cowboy\ndep_cowboy = hex 1.0.0\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 -ifdef LEGACY - $i "Add Cowboy to the applications key in the .app.src file" - $t perl -ni.bak -e 'print;if ($$.==7) {print "\t\tcowboy,\n"}' $(APP)/src/$(APP).app.src -endif +# $i "Add Cowboy 1.0.0 to the list of dependencies" +# $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = cowboy\ndep_cowboy = hex 1.0.0\n"}' $(APP)/Makefile +# +#ifdef LEGACY +# $i "Add Cowboy to the applications key in the .app.src file" +# $t perl -ni.bak -e 'print;if ($$.==7) {print "\t\tcowboy,\n"}' $(APP)/src/$(APP).app.src +#endif $i "Build the application" $t $(MAKE) -C $(APP) $v + $i "Experiment with Hex" + $t $(MAKE) -C $(APP) hex-user-create HEX_USERNAME=essen HEX_PASSWORD=1234567 [email protected] + $t $(MAKE) -C $(APP) hex-key-add HEX_USERNAME=essen HEX_PASSWORD=1234567 + $t $(MAKE) -C $(APP) hex-tarball-create + $t $(MAKE) -C $(APP) hex-release-publish + $t perl -ni.bak -e 'print;if ($$.==7) {print "PROJECT_DESCRIPTION = REPLACED DESCRIPTION\n"}' $(APP)/Makefile + $t $(MAKE) -C $(APP) hex-release-replace + $t $(MAKE) -C $(APP) hex-release-retire + $t $(MAKE) -C $(APP) hex-release-unretire + $t $(MAKE) -C $(APP) hex-release-delete + $i "Check that all dependencies were fetched" $t test -d $(APP)/deps/cowboy $t test -d $(APP)/deps/cowlib |