diff options
author | Loïc Hoguin <[email protected]> | 2020-11-24 17:04:35 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-11-24 17:04:35 +0100 |
commit | 2a75881eca04064f46eb75a980446350f779fcef (patch) | |
tree | eed7fa2e20e5a71df6fb4197d896faddb1cd7901 /test/core_deps.mk | |
parent | c02685b2c8a233a96acb95c913524920c982126c (diff) | |
download | erlang.mk-2a75881eca04064f46eb75a980446350f779fcef.tar.gz erlang.mk-2a75881eca04064f46eb75a980446350f779fcef.tar.bz2 erlang.mk-2a75881eca04064f46eb75a980446350f779fcef.zip |
Add more Hex tests
Diffstat (limited to 'test/core_deps.mk')
-rw-r--r-- | test/core_deps.mk | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/test/core_deps.mk b/test/core_deps.mk index 2aa3312..977fcaf 100644 --- a/test/core_deps.mk +++ b/test/core_deps.mk @@ -594,39 +594,22 @@ endif core-deps-fetch-hex: init - $i "Bootstrap a new OTP application named $(APP)" + $i "Bootstrap a new OTP library named $(APP)" $t mkdir $(APP)/ $t cp ../erlang.mk $(APP)/ - $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 "define HEX_CONFIG\n#{api_url => <<\"http://localhost:4000/api\">>}\nendef\n"}' $(APP)/Makefile + $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v - $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 "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 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 +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 |