-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #421 from xxyzz/pages
Add JSON schema files to GitHub Pages
- Loading branch information
Showing
11 changed files
with
96 additions
and
2,082 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 |
---|---|---|
|
@@ -22,3 +22,6 @@ usertools/data/ | |
bac-wikt-* | ||
pagesbac/ | ||
wikt-db* | ||
|
||
# GitHub Pages | ||
_site |
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,11 +1,20 @@ | ||
# Run "make test" to run tests (with coverage analysis left in ./htmlcov) | ||
# Run "make test" to run tests | ||
# Run "make clean" to remove automatically generated files | ||
REPO ?= tatuylonen/wiktextract | ||
SHA ?= HEAD | ||
|
||
test: | ||
rm -rf .coverage htmlcov | ||
python -m nose2 --output-buffer --pretty-assert --with-coverage --coverage-report=html | ||
quicktest: | ||
python -m nose2 --output-buffer --pretty-assert | ||
python -m unittest discover -b -s tests | ||
test_coverage: | ||
python -m coverage erase | ||
python -m coverage run -m unittest discover -b -s tests | ||
coverage_report: | ||
python -m coverage combine | ||
python -m coverage html | ||
github_pages: | ||
python tools/generate_schema.py | ||
cp json_schema/*.json _site | ||
python tools/github_pages.py $(REPO) $(SHA) | ||
clean: | ||
rm -rf __pycache__ | ||
rm -rf .coverage* htmlcov* | ||
python -m coverage erase | ||
rm -rf __pycache__ _site |
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.