Skip to content

Commit 9fda6a9

Browse files
committed
Initial structure
1 parent 2d708a9 commit 9fda6a9

File tree

12 files changed

+246
-0
lines changed

12 files changed

+246
-0
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.pm linguist-language=Perl
2+
*.t linguist-language=Perl
3+
*.h linguist-language=C

.github/workflows/linux.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: linux
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
tags-ignore:
8+
- '*'
9+
pull_request:
10+
11+
jobs:
12+
perl:
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
cip_tag:
20+
- "5.41"
21+
- "5.40"
22+
- "5.38"
23+
- "5.36"
24+
- "5.34"
25+
- "5.32"
26+
- "5.30"
27+
- "5.28"
28+
- "5.26"
29+
- "5.24"
30+
- "5.22"
31+
- "5.20"
32+
33+
env:
34+
CIP_TAG: ${{ matrix.cip_tag }}
35+
36+
steps:
37+
- uses: actions/checkout@v2
38+
39+
- name: Bootstrap CIP
40+
run: |
41+
curl -L https://raw.githubusercontent.com/uperl/cip/main/bin/github-bootstrap | bash
42+
43+
- name: Cache-Key
44+
id: cache-key
45+
run: |
46+
echo -n '::set-output name=key::'
47+
cip cache-key
48+
49+
- name: Cache CPAN modules
50+
uses: actions/cache@v2
51+
with:
52+
path: ~/.cip
53+
key: ${{ runner.os }}-build-${{ steps.cache-key.outputs.key }}
54+
restore-keys: |
55+
${{ runner.os }}-build-${{ steps.cache-key.outputs.key }}
56+
57+
- name: Start-Container
58+
run: |
59+
cip start
60+
61+
- name: Diagnostics
62+
run: |
63+
cip diag
64+
65+
- name: Install-Dependencies
66+
run: |
67+
cip install
68+
69+
- name: Build + Test
70+
run: |
71+
cip script
72+
73+
- name: CPAN log
74+
if: ${{ failure() }}
75+
run: |
76+
cip exec bash -c 'cat $HOME/.cpanm/latest-build/build.log'

.github/workflows/static.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: static
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
tags-ignore:
8+
- '*'
9+
pull_request:
10+
11+
jobs:
12+
perl:
13+
14+
runs-on: ubuntu-latest
15+
16+
env:
17+
CIP_TAG: static
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Bootstrap CIP
23+
run: |
24+
curl -L https://raw.githubusercontent.com/uperl/cip/main/bin/github-bootstrap | bash
25+
26+
- name: Build + Test
27+
run: |
28+
cip script

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Test2-Require-ProgramInPath-*
2+
/.build/
3+
*.swp

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"pls.perlcritic.perlcriticrc": "perlcriticrc",
3+
"pls.inc": [
4+
"$ROOT_PATH/lib"
5+
]
6+
}

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Revision history for {{$dist->name}}
2+
3+
{{$NEXT}}
4+
- initial version

author.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
pod_spelling_system:
3+
skip: 0
4+
# list of words that are spelled correctly
5+
# (regardless of what spell check thinks)
6+
# or stuff that I like to spell incorrectly
7+
# intentionally
8+
stopwords: []
9+
10+
pod_coverage:
11+
skip: 0
12+
# format is "Class#method" or "Class",regex allowed
13+
# for either Class or method.
14+
private: []

dist.ini

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name = Test2-Require-ProgramInPath
2+
author = Graham Ollis <plicease@cpan.org>
3+
license = Perl_5
4+
copyright_holder = Graham Ollis
5+
copyright_year = 2025
6+
version = 0.01
7+
8+
[@Author::Plicease]
9+
:version = 2.79
10+
release_tests = 1
11+
installer = Author::Plicease::MakeMaker
12+
github_user = uperl
13+
default_branch = main
14+
test2_v0 = 1
15+
workflow = static
16+
workflow = linux
17+
version_plugin = PkgVersion::Block
18+
19+
[Author::Plicease::Core]
20+
21+
[Author::Plicease::Upload]
22+
cpan = 1
23+
24+

lib/Test2/Require/ProgramInPath.pm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
use warnings;
2+
use 5.020;
3+
use experimental qw( postderef signatures );
4+
use true;
5+
6+
package Test2::Require::ProgramInPath {
7+
8+
# ABSTRACT: Skip test unless a program exists in the PATH
9+
}

perlcriticrc

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
severity = 1
2+
only = 1
3+
4+
[Community::ArrayAssignAref]
5+
[Community::BarewordFilehandles]
6+
[Community::ConditionalDeclarations]
7+
[Community::ConditionalImplicitReturn]
8+
[Community::DeprecatedFeatures]
9+
[Community::DiscouragedModules]
10+
[Community::DollarAB]
11+
[Community::Each]
12+
[Community::EmptyReturn]
13+
[Community::IndirectObjectNotation]
14+
[Community::LexicalForeachIterator]
15+
[Community::LoopOnHash]
16+
[Community::ModPerl]
17+
[Community::OpenArgs]
18+
[Community::OverloadOptions]
19+
[Community::POSIXImports]
20+
[Community::PackageMatchesFilename]
21+
[Community::PreferredAlternatives]
22+
[Community::StrictWarnings]
23+
extra_importers = Test2::V0
24+
[Community::Threads]
25+
[Community::Wantarray]
26+
[Community::WarningsSwitch]
27+
[Community::WhileDiamondDefaultAssignment]
28+
29+
[BuiltinFunctions::ProhibitBooleanGrep]
30+
[BuiltinFunctions::ProhibitStringyEval]
31+
[BuiltinFunctions::ProhibitStringySplit]
32+
[BuiltinFunctions::ProhibitVoidGrep]
33+
[BuiltinFunctions::ProhibitVoidMap]
34+
[ClassHierarchies::ProhibitExplicitISA]
35+
[ClassHierarchies::ProhibitOneArgBless]
36+
[CodeLayout::ProhibitHardTabs]
37+
allow_leading_tabs = 0
38+
[CodeLayout::ProhibitTrailingWhitespace]
39+
[CodeLayout::RequireConsistentNewlines]
40+
[ControlStructures::ProhibitLabelsWithSpecialBlockNames]
41+
[ControlStructures::ProhibitMutatingListFunctions]
42+
[ControlStructures::ProhibitUnreachableCode]
43+
[InputOutput::ProhibitBarewordFileHandles]
44+
[InputOutput::ProhibitJoinedReadline]
45+
[InputOutput::ProhibitTwoArgOpen]
46+
[Miscellanea::ProhibitFormats]
47+
[Miscellanea::ProhibitUselessNoCritic]
48+
[Modules::ProhibitConditionalUseStatements]
49+
;[Modules::RequireEndWithOne]
50+
[Modules::RequireNoMatchVarsWithUseEnglish]
51+
[Objects::ProhibitIndirectSyntax]
52+
[RegularExpressions::ProhibitUselessTopic]
53+
[Subroutines::ProhibitNestedSubs]
54+
[ValuesAndExpressions::ProhibitLeadingZeros]
55+
[ValuesAndExpressions::ProhibitMixedBooleanOperators]
56+
[ValuesAndExpressions::ProhibitSpecialLiteralHeredocTerminator]
57+
[ValuesAndExpressions::RequireUpperCaseHeredocTerminator]
58+
[Variables::ProhibitPerl4PackageNames]
59+
[Variables::ProhibitUnusedVariables]

0 commit comments

Comments
 (0)