-
-
Notifications
You must be signed in to change notification settings - Fork 690
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 #1251 from cucumber/elixir-gherkin-implementation
Elixir gherkin parser implementation
- Loading branch information
Showing
247 changed files
with
15,650 additions
and
105 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
# Created by https://www.toptal.com/developers/gitignore/api/elixir,vscode | ||
# Edit at https://www.toptal.com/developers/gitignore?templates=elixir,vscode | ||
|
||
### Elixir ### | ||
/_build | ||
/cover | ||
/deps | ||
/doc | ||
/.fetch | ||
erl_crash.dump | ||
*.ez | ||
*.beam | ||
/config/*.secret.exs | ||
.elixir_ls/ | ||
|
||
### Elixir Patch ### | ||
|
||
### vscode ### | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
*.code-workspace | ||
|
||
# End of https://www.toptal.com/developers/gitignore/api/elixir,vscode | ||
|
||
.deps | ||
.tested |
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,48 @@ | ||
SHELL := /usr/bin/env bash | ||
ELIXIR_SOURCE_FILES = $(shell find . -name "*.ex") | ||
|
||
default: .tested | ||
|
||
.tested: .deps $(ELIXIR_SOURCE_FILES) | ||
mix test | ||
touch $@ | ||
|
||
.deps: | ||
mix local.hex --force | ||
mix deps.get | ||
touch $@ | ||
|
||
update-dependencies: | ||
@echo -e "\033[0;31mPlease update dependencies for elixir manually in mix.exs!! Check https://hex.pm/ for the latest version.\033[0m" | ||
@echo -e "\033[0;31mSome packages require some options (such as ex_doc), check the package its readme / hexdocs.\033[0m" | ||
.PHONY: update-dependencies | ||
|
||
pre-release: update-version update-dependencies clean default | ||
[ -f '/home/cukebot/import-gpg-key.sh' ] && /home/cukebot/import-gpg-key.sh | ||
.PHONY: pre-release | ||
|
||
update-version: | ||
ifdef NEW_VERSION | ||
sed -Ei 's/@vsn "[^"]+"/@vsn "$(NEW_VERSION)"/' mix.exs | ||
else | ||
@echo -e "\033[0;31mNEW_VERSION is not defined. Can't update version :-(\033[0m" | ||
exit 1 | ||
endif | ||
.PHONY: update-version | ||
|
||
publish: .deps | ||
ifdef HEX_API_KEY | ||
mix hex.publish --yes | ||
else | ||
@echo -e "\033[0;31mHEX_API_KEY is not defined. Can't update version :-(\033[0m" | ||
exit 1 | ||
endif | ||
|
||
.PHONY: publish | ||
|
||
post-release: | ||
@echo "No post-release for elixir projects (yet)" | ||
.PHONY: post-release | ||
|
||
clean: | ||
rm -rf _build deps .deps .tested |
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,2 +1,2 @@ | ||
LANGUAGES ?= go javascript ruby java | ||
include default.mk | ||
LANGUAGES ?= go javascript ruby java elixir | ||
include default.mk |
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,5 @@ | ||
PLEASE DO NOT CREATE ISSUES IN THIS REPO. | ||
THIS REPO IS A READ-ONLY MIRROR. | ||
|
||
Create your issue in the Cucumber monorepo instead: | ||
https://github.com/cucumber/cucumber/issues |
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,5 @@ | ||
PLEASE DO NOT CREATE PULL REAUESTS IN THIS REPO. | ||
THIS REPO IS A READ-ONLY MIRROR. | ||
|
||
Create your pull request in the Cucumber monorepo instead: | ||
https://github.com/cucumber/cucumber/pulls |
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,30 @@ | ||
|
||
# Created by https://www.toptal.com/developers/gitignore/api/elixir,vscode | ||
# Edit at https://www.toptal.com/developers/gitignore?templates=elixir,vscode | ||
|
||
### Elixir ### | ||
/_build | ||
/cover | ||
/deps | ||
/doc | ||
/.fetch | ||
erl_crash.dump | ||
*.ez | ||
*.beam | ||
/config/*.secret.exs | ||
.elixir_ls/ | ||
|
||
### Elixir Patch ### | ||
|
||
### vscode ### | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
*.code-workspace | ||
|
||
# End of https://www.toptal.com/developers/gitignore/api/elixir,vscode | ||
|
||
.deps | ||
.tested |
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,6 @@ | ||
../LICENSE LICENSE | ||
../../.templates/github/ .github/ | ||
../../.templates/elixir/ . | ||
../testdata/ testdata/ | ||
../gherkin.berp resources/gherkin.berp | ||
../gherkin-languages.json resources/gherkin_languages.json |
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) Cucumber Ltd, Gaspar Nagy, Björn Rasmusson, Peter Sergeant | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
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,12 @@ | ||
include default.mk | ||
|
||
.deps: lib/gherkin/parser.ex | ||
|
||
lib/gherkin/parser.ex: resources/gherkin.berp gherkin-elixir.razor | ||
mono /var/lib/berp/1.1.1/tools/net471/Berp.exe -g resources/gherkin.berp -t gherkin-elixir.razor -o $@ | ||
# Remove BOM | ||
awk 'NR==1{sub(/^\xef\xbb\xbf/,"")}{print}' < $@ > $@.nobom | ||
mv $@.nobom $@ | ||
|
||
clobber: clean | ||
rm -f lib/gherkin/parser.ex |
Oops, something went wrong.