-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Branches the test application off from kanaloa-dev into new package k…
…analoa-dev-service. Moves the test app from kanaloa to kanaloa-dev-service. People who are interested in developing with kanaloa may choose kanaloa-dev. They do not want a test service running. People who are actually developing kanaloa itself probably do want the dev service, as the integration tests depend on it.
- Loading branch information
Showing
21 changed files
with
185 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
NAME = kanaloa-dev-service | ||
VERSION = 0.01 | ||
DEST = $(DESTDIR)/usr/lib/erlang/lib/$(NAME)-$(VERSION) | ||
DEST_EBIN = $(DEST)/ebin | ||
DEST_BIN = $(DESTDIR)/usr/bin | ||
DEST_NGINX=$(DESTDIR)/etc/nginx/sites-available | ||
|
||
build: ebin/ | ||
(cd src;$(MAKE) all) | ||
|
||
clean: | ||
(cd src;$(MAKE) clean) | ||
|
||
ebin/: | ||
@mkdir -p ebin | ||
|
||
install: | ||
@mkdir -p $(DEST_EBIN) || true | ||
cp ebin/* $(DEST_EBIN) | ||
@mkdir -p $(DEST_BIN) || true | ||
cp bin/kanaloa-test-app $(DEST_BIN)/ | ||
@mkdir -p $(DEST_NGINX) || true | ||
cp config/nginx/kanaloa-dev $(DEST_NGINX)/ | ||
|
||
package: | ||
# Increment the version number | ||
dch --newversion $(VERSION)-1-`date +"%Y%m%d%H%M%S"` "Local build" | ||
dpkg-buildpackage -rfakeroot -b -uc -tc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kanaloa-dev-service (0.01-1) unstable; urgency=low | ||
|
||
* Initial release | ||
|
||
-- Steve <steve@schwink.net> Sat, 27 Mar 2010 02:24:03 -0700 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Source: kanaloa-dev-service | ||
Section: web | ||
Priority: extra | ||
Maintainer: Steve <steve@schwink.net> | ||
Build-Depends: debhelper, devscripts | ||
Standards-Version: 3.8.1 | ||
Homepage: | ||
|
||
Package: kanaloa-dev-service | ||
Architecture: any | ||
Depends: ${misc:Depends}, nginx, kanaloa, kanaloa-client-web | ||
Suggests: | ||
Description: Sets up a sample application, useful for testing kanaloa. The kanaloa integration tests depend on this service. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
server/dev/debian/postinst → server/dev-service/debian/postinst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#! /bin/sh | ||
# postrm script for kanaloa-dev | ||
# postrm script for kanaloa-dev-service | ||
# | ||
# see: dh_installdeb(1) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
#!/usr/bin/make -f | ||
# -*- makefile -*- | ||
# Sample debian/rules that uses debhelper. | ||
# This file was originally written by Joey Hess and Craig Small. | ||
# As a special exception, when this file is copied by dh-make into a | ||
# dh-make output file, you may use that output file without restriction. | ||
# This special exception was added by Craig Small in version 0.37 of dh-make. | ||
|
||
# Uncomment this to turn on verbose mode. | ||
#export DH_VERBOSE=1 | ||
|
||
configure: configure-stamp | ||
configure-stamp: | ||
dh_testdir | ||
# Add here commands to configure the package. | ||
|
||
touch configure-stamp | ||
|
||
|
||
build: build-stamp | ||
build-stamp: configure-stamp | ||
dh_testdir | ||
|
||
# Add here commands to compile the package. | ||
$(MAKE) | ||
|
||
touch $@ | ||
|
||
clean: | ||
dh_testdir | ||
dh_testroot | ||
rm -f build-stamp configure-stamp | ||
|
||
# Add here commands to clean up after the build process. | ||
$(MAKE) clean | ||
|
||
dh_clean | ||
|
||
install: build | ||
dh_testdir | ||
dh_testroot | ||
dh_prep | ||
dh_installdirs | ||
|
||
# Add here commands to install the package into debian/kanaloa-dev-service. | ||
$(MAKE) DESTDIR=$(CURDIR)/debian/kanaloa-dev-service install | ||
|
||
|
||
# Build architecture-independent files here. | ||
binary-indep: install | ||
# We have nothing to do by default. | ||
|
||
# Build architecture-dependent files here. | ||
binary-arch: install | ||
dh_testdir | ||
dh_testroot | ||
# dh_installchangelogs | ||
# dh_installdocs | ||
# dh_installexamples | ||
# dh_install | ||
# dh_installmenu | ||
# dh_installdebconf | ||
# dh_installlogrotate | ||
# dh_installemacsen | ||
# dh_installpam | ||
# dh_installmime | ||
# dh_python | ||
dh_installinit --name=kanaloa-dev | ||
# dh_installcron | ||
# dh_installinfo | ||
# dh_installman | ||
# dh_link | ||
# dh_strip | ||
# dh_compress | ||
dh_fixperms | ||
# dh_perl | ||
# dh_makeshlibs | ||
dh_installdeb | ||
# dh_shlibdeps | ||
dh_gencontrol | ||
dh_md5sums | ||
dh_builddeb | ||
|
||
binary: binary-indep binary-arch | ||
.PHONY: build clean binary-indep binary-arch binary install configure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
include ../../kanaloa/support/include.mk | ||
|
||
APPLICATION=kanaloa | ||
DOC_OPTS={dir,\"../doc\"} | ||
TEST_PLT=$(TEST_DIR)/dialyzer_plt | ||
|
||
all: $(EBIN_FILES) | ||
|
||
debug: | ||
$(MAKE) DEBUG=-DDEBUG | ||
|
||
clean: | ||
rm -rf ../ebin | ||
rm -rf ../doc | ||
|
||
edoc: | ||
$(ERL) -noshell -pa ../ebin \ | ||
-eval "edoc:application($(APPLICATION), \".\", [$(DOC_OPTS)])" \ | ||
-s init stop | ||
|
||
test: $(EBIN_FILES) | ||
mkdir -p $(TEST_DIR); | ||
@../support/run_tests.escript $(EBIN_DIR) $(TBIN_DIR) | tee $(TEST_DIR)/test.log | ||
|
||
$(TEST_PLT): | ||
mkdir -p $(TEST_DIR) | ||
cp $(DIALYZER_PLT) $(TEST_PLT) | ||
dialyzer --plt $(TEST_PLT) --add_to_plt -r ../deps/*/ebin | ||
|
||
clean_plt: | ||
rm $(TEST_PLT) | ||
|
||
dialyzer: $(TEST_PLT) | ||
dialyzer --src --plt $(TEST_PLT) -DNOTEST -DDIALYZER -c ../src | tee $(TEST_DIR)/dialyzer.log |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
NAME = kanaloa-dev | ||
VERSION = 0.01 | ||
NGINX_SITES_AVAILABLE=$(DESTDIR)/etc/nginx/sites-available | ||
DEST_BIN = $(DESTDIR)/usr/bin | ||
|
||
build: | ||
/bin/true | ||
|
||
clean: | ||
/bin/true | ||
|
||
force: | ||
|
||
install: | ||
@mkdir -p $(NGINX_SITES_AVAILABLE) || true | ||
cp config/nginx/kanaloa $(NGINX_SITES_AVAILABLE)/ || true | ||
@mkdir -p $(DEST_BIN) || true | ||
cp bin/kanaloa_test_app $(DEST_BIN) | ||
/bin/true | ||
|
||
package: force | ||
package: | ||
# Increment the version number | ||
dch --newversion $(VERSION)-1-`date +"%Y%m%d%H%M%S"` "Local build" | ||
dpkg-buildpackage -rfakeroot -b -uc -tc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
include ../support/include.mk | ||
|
||
all: $(TBIN_FILES) | ||
cp *.app ../tbin/ | ||
|
||
clean: | ||
rm -rf ../tbin | ||
|