-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (31 loc) · 2.11 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
TESTS = $(shell find test -wholename "*Spec.coffee")
#TESTS = $(shell find test -wholename "*readPcAxisPipeSpec.coffee")
#TESTS = $(shell find test -wholename "*pcAxisParserSpec.coffee")
#TESTS = $(shell find test -wholename "*writeAtomPipeSpec.coffee")
#TESTS = $(shell find test -wholename "*decodingPipeSpec.coffee")
#TESTS = $(shell find test -wholename "*simpleRegistrySpec.coffee")
#TESTS = $(shell find test -wholename "*submitToRegistryPipeSpec.coffee")
install:
@test `which npm` || echo 'You need to have npm installed'
@npm install
test: release
@./node_modules/mocha/bin/mocha $(TESTS)
release:
@rm -fr lib
@./node_modules/coffee-script/bin/coffee -c -o lib src
samples: release
@rm -f examples/*
@bin/sdmxfeeder --level ERROR test/fixtures/edifact/concepts.edi examples/concepts_edi.json
@bin/sdmxfeeder --level ERROR test/fixtures/edifact/code_list.edi examples/code_list_edi.json
@bin/sdmxfeeder --level ERROR test/fixtures/edifact/key_family.edi examples/key_family_edi.json
@bin/sdmxfeeder --level ERROR test/fixtures/edifact/data_update_1.edi examples/data_update_1_edi.json
@bin/sdmxfeeder --level ERROR test/fixtures/edifact/data_update_2.edi examples/data_update_2_edi.json
@bin/sdmxfeeder --level ERROR test/fixtures/xml/v1_0/StructureSample.xml examples/StructureSample_v1_0_xml.json
@bin/sdmxfeeder --level ERROR test/fixtures/xml/v2_0/StructureSample.xml examples/StructureSample_v2_0_xml.json
@bin/sdmxfeeder --level ERROR test/fixtures/xml/v1_0/GenericSample.xml examples/GenericSample_v1_0_xml.json
@bin/sdmxfeeder --level ERROR test/fixtures/xml/v2_0/GenericSample.xml examples/GenericSample_v2_0_xml.json
@bin/sdmxfeeder --level ERROR test/fixtures/xml/v1_0/CompactSample.xml examples/CompactSample_v1_0_xml.json
@bin/sdmxfeeder --level ERROR test/fixtures/xml/v2_0/CompactSample.xml examples/CompactSample_v2_0_xml.json
@bin/sdmxfeeder --level ERROR test/fixtures/xml/v2_1/ecb_exr_rg_full.xml examples/ecb_exr_rg_full_xml.json
@bin/sdmxfeeder --level ERROR test/fixtures/xml/v2_1/ecb_exr_rg_ts_generic.xml examples/ecb_exr_rg_ts_generic_xml.json
.PHONY: install test release samples