Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
128 changed files
with
235 additions
and
255 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
/_build | ||
/src/.merlin | ||
/_coverage | ||
/coverage.json | ||
/setup.data | ||
/setup.log | ||
/test/*/dune | ||
.merlin | ||
*.byte | ||
*.exe | ||
*.native | ||
*.swp | ||
bisect*.out |
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,35 +1,26 @@ | ||
tests: \ | ||
$(patsubst %.api.h,%.out.h,$(wildcard src/tests/*.api.h)) \ | ||
$(patsubst %.api.h,%.out.hs,$(wildcard src/tests/*.api.h)) \ | ||
$(patsubst %.api.h,%.out.api,$(wildcard src/tests/*.api.h)) \ | ||
$(patsubst %.api.h,%.out.ast,$(wildcard src/tests/*.api.h)) | ||
./apigen.exe | ||
|
||
src/tests/%.out.h: src/tests/%.api.h apigen.exe | ||
-cd src && ../apigen.exe $(patsubst src/%,%,$<) > $(patsubst src/%,%,$@) 2>&1 | ||
diff -u src/tests/$*.exp.h $@ | ||
rm -f $@ | ||
|
||
src/tests/%.out.hs: src/tests/%.api.h apigen.exe | ||
-cd src && ../apigen.exe -hs Main $(patsubst src/%,%,$<) > $(patsubst src/%,%,$@) 2>&1 | ||
diff -u src/tests/$*.exp.hs $@ | ||
rm -f $@ | ||
apigen.native: $(wildcard *.ml* src/*.ml*) | ||
dune clean | ||
dune build --profile release | ||
cp _build/default/apigen.exe $@ | ||
|
||
src/tests/%.out.api: src/tests/%.api.h apigen.exe | ||
-cd src && ../apigen.exe -api $(patsubst src/%,%,$<) > $(patsubst src/%,%,$@) 2>&1 | ||
diff -u src/tests/$*.exp.api $@ | ||
rm -f $@ | ||
test/%/dune: test/dune-template Makefile | ||
sed -e 's/%NAME%/$*/g' $< > $@ | ||
|
||
src/tests/%.out.ast: src/tests/%.api.h apigen.exe | ||
-cd src && ../apigen.exe -ast $(patsubst src/%,%,$<) > $(patsubst src/%,%,$@) 2>&1 | ||
diff -u src/tests/$*.exp.ast $@ | ||
check: $(patsubst %,%dune,$(dir $(wildcard test/*/*.api.h))) | ||
dune clean | ||
BISECT_ENABLE=yes dune runtest | ||
|
||
apigen.exe: | ||
dune build --profile release | ||
cp _build/default/src/apigen.exe $@ | ||
coverage: check | ||
bisect-ppx-report -html _coverage/ -I _build/default _build/default/test/*/bisect*.out | ||
|
||
coverage: travis-coveralls.sh | ||
bash $< | ||
coveralls: check | ||
bisect-ppx-report \ | ||
-coveralls coverage.json \ | ||
-service-name travis-ci \ | ||
-service-job-id "${TRAVIS_JOB_ID}" \ | ||
-I _build/default _build/default/test/*/bisect*.out | ||
curl -L -F json_file=@coverage.json https://coveralls.io/api/v1/jobs | ||
|
||
clean: | ||
dune clean | ||
rm -f apigen.native |
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,3 @@ | ||
(executable | ||
(name apigen) | ||
(libraries apidsl)) |
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 @@ | ||
(file .git ignore) |
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 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
Oops, something went wrong.