From d0c88c5bbcff93c66805a1df9b1f8318eba04b9b Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Mon, 25 Oct 2010 16:27:36 +0200 Subject: add an infrastructure (Makefile based) --- .gitignore | 4 +++- Makefile | 10 ++++++++++ apps/Makefile | 14 ++++++++++++++ services/Makefile | 18 ++++++++++++++++++ services/github/Makefile | 14 ++++++++++++++ 5 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 Makefile create mode 100644 apps/Makefile create mode 100644 services/Makefile create mode 100644 services/github/Makefile diff --git a/.gitignore b/.gitignore index 2a61605..d6d83f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -*.yaml \ No newline at end of file +*.yaml +*.rx + diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1c7215c --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ + +check: + @make -C apps check + @make -C services check + +test: check + +clean: + @make -C apps clean + @make -C services clean diff --git a/apps/Makefile b/apps/Makefile new file mode 100644 index 0000000..9f46b1e --- /dev/null +++ b/apps/Makefile @@ -0,0 +1,14 @@ + +VALIDATOR := perl ../utils/validator.pl --schema spore_validation.rx --description + +check: spore_validation.rx + @$(VALIDATOR) couchdb.json + @$(VALIDATOR) presque.json + +test: check + +spore_validation.rx: + wget http://github.com/SPORE/specifications/raw/master/spore_validation.rx + +clean: + -rm spore_validation.rx diff --git a/services/Makefile b/services/Makefile new file mode 100644 index 0000000..7126764 --- /dev/null +++ b/services/Makefile @@ -0,0 +1,18 @@ +VALIDATOR := perl ../utils/validator.pl --schema spore_validation.rx --description + +check: spore_validation.rx + @make -C github check + @$(VALIDATOR) backtweet.json + @$(VALIDATOR) backtype.json + @$(VALIDATOR) github.json + @$(VALIDATOR) ihackernews.json + @$(VALIDATOR) twitter.json + +test: check + +spore_validation.rx: + wget http://github.com/SPORE/specifications/raw/master/spore_validation.rx + +clean: + @make -C github clean + -rm spore_validation.rx diff --git a/services/github/Makefile b/services/github/Makefile new file mode 100644 index 0000000..d9efd92 --- /dev/null +++ b/services/github/Makefile @@ -0,0 +1,14 @@ + +VALIDATOR := perl ../../utils/validator.pl --schema spore_validation.rx --description + +check: spore_validation.rx + @$(VALIDATOR) repository.json + @$(VALIDATOR) user.json + +test: check + +spore_validation.rx: + wget http://github.com/SPORE/specifications/raw/master/spore_validation.rx + +clean: + -rm spore_validation.rx -- cgit v1.2.3