Skip to content

Instantly share code, notes, and snippets.

View jonasbn's full-sized avatar
🤚
keeping my distance

Jonas Brømsø jonasbn

🤚
keeping my distance
View GitHub Profile
@jonasbn
jonasbn / .gitignore
Last active February 15, 2018 16:02
My gitignore for Perl projects
!Build/
.last_cover_stats
/META.yml
/META.json
/MYMETA.*
*.o
*.pm.tdy
*.bs
MANIFEST
@jonasbn
jonasbn / .travis.yml
Last active February 1, 2017 16:34
My .travis.yml for Perl projects, coveralls integration from http://perlhacks.com/2014/07/github-travis-ci-perl/
language: perl
perl:
- "5.18"
- "5.16"
- "5.14"
- "5.12"
- "5.10"
install:
cpanm --quiet --installdeps --notest . && cpanm --quiet --notest Devel::Cover::Report::Coveralls
@jonasbn
jonasbn / package.pod
Created July 29, 2014 12:17
My Perl package POD template

NAME

<package name> - <package abstract>

SYNOPSIS

VERSION

@jonasbn
jonasbn / file.pl
Created July 31, 2014 13:55
Perl script
#!/usr/bin/env perl
use strict;
use warnings;
exit 0;
@jonasbn
jonasbn / 00-compile.t
Created July 31, 2014 14:23
Perl test to compile contents of lib/
#!/usr/bin/env perl
#Courtesy of Ovid
#Ref: http://use.perl.org/~Ovid/journal/37797
use strict;
use warnings;
use File::Find;
use File::Spec;
@jonasbn
jonasbn / critic.t
Last active August 29, 2015 14:04
Perl::Critic tests
# Courtesy of Jeffrey Ryan Thalhammer
# http://search.cpan.org/~thaljef/Test-Perl-Critic/lib/Test/Perl/Critic.pm
use strict;
use warnings;
use File::Spec;
use Test::More;
use English qw(-no_match_vars);
if ( not $ENV{TEST_CRITIC} ) {
@jonasbn
jonasbn / kwalitee.t
Created July 31, 2014 14:26
Test::Kwalitee tests
use strict;
use warnings;
BEGIN {
unless ( $ENV{RELEASE_TESTING} ) {
use Test::More;
plan( skip_all => 'these tests are for release candidate testing' );
}
}
@jonasbn
jonasbn / pod-coverage.t
Created July 31, 2014 14:28
Pod::Coverage tests
#pod test courtesy of petdance
#http://use.perl.org/~petdance/journal/17412
use Test::More;
eval "use Test::Pod::Coverage 0.08";
plan skip_all => "Test::Pod::Coverage 0.08 required for testing POD coverage" if $@;
all_pod_coverage_ok();
@jonasbn
jonasbn / pod-syntax.t
Last active August 29, 2015 14:04
Test::Pod test (pod syntax test)
use Test::More;
eval "use Test::Pod 1.14";
plan skip_all => 'Test::Pod 1.14 required' if $@;
plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
all_pod_files_ok();
@jonasbn
jonasbn / Module-Build.sublime-build
Created August 1, 2014 08:28
Module::Build build system for SublimeText
{
"build_systems":
[
{
"name": "Module::Build",
"cmd": ["perl Build.PL --verbose=1 ; ./Build"],
"working_dir": "${project_path:${folder}}",
"selector": "source.perl",
"shell": true,