summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--services/Makefile18
-rw-r--r--services/github/Makefile14
2 files changed, 32 insertions, 0 deletions
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