forked from cloudfoundry/ibm-websphere-liberty-buildpack
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude .git, spec, and coverage reports from package
There's no need for a packaged admin buildpack to contain all of the test artifacts, coverage reports, or git repository so exclude them from the zip when it's created.
- Loading branch information
Showing
2 changed files
with
5 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.* | ||
coverage/* | ||
spec/* | ||
Rakefile |
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 |
---|---|---|
|
@@ -93,7 +93,7 @@ task :package, [:zipfile, :hosts] do |t, args| | |
system("find #{dest} -type f -exec chmod a+r {} \\;") | ||
system("find #{dest} -type d -exec chmod a+rx {} \\;") | ||
system("chmod a+rx #{dest}/bin/*") | ||
system("cd #{dest} && zip -r #{zipfile} .") | ||
system("cd #{dest} && zip -r #{zipfile} [email protected] .") | ||
end | ||
end | ||
|