Skip to content

Commit

Permalink
Don't maintain a generated Languages.pm file
Browse files Browse the repository at this point in the history
Fixes #32
  • Loading branch information
ehuelsmann committed Sep 24, 2023
1 parent 3be6b55 commit 9fd1084
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test-perl.yml
Expand Up @@ -35,12 +35,13 @@ jobs:
install-modules-with: cpanm
working-directory: perl

# Run acceptance tests first! They build Languages.pm
- name: run acceptance tests
run: make acceptance
working-directory: perl

- name: run tests
run: |
prove -l
AUTHOR_TESTS=1 prove -l
working-directory: perl

- name: run acceptance tests
run: make acceptance
working-directory: perl
1 change: 1 addition & 0 deletions perl/.gitignore
Expand Up @@ -6,3 +6,4 @@ perl5/
.cpanfile_dependencies
cpanfile.snapshot
CHANGELOG.md
lib/Gherkin/Generated/Languages.pm
2 changes: 1 addition & 1 deletion perl/Makefile
Expand Up @@ -43,7 +43,7 @@ clean: ## Remove all build artifacts and files generated by the acceptance tests

.DELETE_ON_ERROR:

acceptance: .built $(TOKENS) $(ASTS) $(PICKLES) $(SOURCES) $(ERRORS) ## Build acceptance test dir and compare results with reference
acceptance: .built lib/Gherkin/Generated/Languages.pm $(TOKENS) $(ASTS) $(PICKLES) $(SOURCES) $(ERRORS) ## Build acceptance test dir and compare results with reference

.built: perl5 $(SOURCE_FILES)
touch $@
Expand Down
8 changes: 7 additions & 1 deletion perl/dist.ini
Expand Up @@ -36,10 +36,16 @@ exclude_filename=gherkin-perl.razor
exclude_filename=Makefile
exclude_filename=VERSION

[GatherFile]
[GatherFile / CHANGELOG.md]
; explicitly add unversioned files
root=../
filename=CHANGELOG.md

[GatherFile / GeneratedLanguages]
filename=lib/Gherkin/Generated/Languages.pm

[Hook::VersionProvider]
. = my $v = `cat ./VERSION`; chomp( $v ); $v;

[Run::BeforeBuild]
run = helper-scripts/build_languages.pl >lib/Gherkin/Generated/Languages.pm
7 changes: 0 additions & 7 deletions perl/lib/Gherkin/Generated/Languages.pm

This file was deleted.

0 comments on commit 9fd1084

Please sign in to comment.