-
-
Notifications
You must be signed in to change notification settings - Fork 694
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[perl] build, test and release improvements (#1728)
* [perl] Make sure CHANGELOG.md is included in Perl dists Since the [Git::GatherDir] plugin for Dist::Zilla *only* gathers versioned files and the CHANGELOG.md file is *not* versioned, but rather copied into the project directory upon release, it needs to be explicitly included in the distribution tar file. Also, in order to reduce the number of files a developer needs to get to know, move the ignore patterns from `MANIFEST.SKIP` to `dist.ini`, eliminating the need to have `MANIFEST.SKIP` at all. * [perl] Centralize setting PERL5LIB and PATH; reusing in default.mk and Makefile In case of Gherkin, use this centralization to add the in-repository path for Cucumber::Messages in case we're running in the CI environment. * [perl] Align makefile targets 1. `clobber` target removes generated files (`clean` does not) 2. `clean` target removes "imported" `CHANGELOG.md` Note that the CHANGES file hasn't existed for a long time... * [gherkin] Update CHANGELOG.md
- Loading branch information
1 parent
89e4482
commit e2e0520
Showing
9 changed files
with
60 additions
and
39 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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
include default.mk | ||
|
||
PERL5LIB = $$PWD/perl5/lib/perl5 | ||
PERL5PATH = $$PWD/perl5/bin | ||
|
||
|
||
|
||
JSONSCHEMAS = $(shell find ../jsonschema -name "*.json") | ||
|
||
test: lib/Cucumber/Messages.pm .cpanfile_dependencies | ||
PERL5LIB=./perl5/lib/perl5 AUTHOR_TESTS=1 prove -l | ||
.PHONY: test | ||
PERL5LIB=${PERL5LIB} AUTHOR_TESTS=1 prove -l | ||
.PHONY: test clean clobber | ||
|
||
lib/Cucumber/Messages.pm: $(JSONSCHEMAS) ../jsonschema/scripts/codegen.rb ../jsonschema/scripts/templates/perl.pm.erb ../jsonschema/scripts/templates/perl.enum.pm.erb | ||
ruby ../jsonschema/scripts/codegen.rb Perl ../jsonschema > $@ | ||
|
||
clean: | ||
rm -f lib/Cucumber/Messages.pm .cpanfile_dependencies .built | ||
rm -rf Cucumber-* .cpanfile_dependencies .built CHANGELOG.md | ||
|
||
clobber: clean | ||
rm -f lib/Cucumber/Messages.pm |
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