Skip to content

Commit

Permalink
Initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesg committed Dec 21, 2019
0 parents commit 41a6389
Show file tree
Hide file tree
Showing 82 changed files with 5,085 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
.build
5 changes: 5 additions & 0 deletions Changes
@@ -0,0 +1,5 @@
Revision history for Neovim-Ext

{{$NEXT}}

- Initial version
3 changes: 3 additions & 0 deletions MANIFEST.SKIP
@@ -0,0 +1,3 @@
MYMETA.json.lock
.build/
cover_db/
1 change: 1 addition & 0 deletions README.pod
28 changes: 28 additions & 0 deletions appveyor.yml
@@ -0,0 +1,28 @@
cache:
- C:\projects\sources

install:
- set SOURCES="C:\projects\sources"
- if not exist "%SOURCES%" mkdir "%SOURCES%"
- del "%SOURCES%\*.msi"

# download
- set PERL522PACKAGE=strawberry-perl-5.22.3.1-64bit-portable.zip

- if not exist "%SOURCES%\%PERL522PACKAGE%" curl -fsS -o "%SOURCES%\%PERL522PACKAGE%" http://strawberryperl.com/download/5.22.3.1/%PERL522PACKAGE%

- set PERL522=C:\projects\perl522

- 7z x "%SOURCES%\%PERL522PACKAGE%" -o"%PERL522%"

- set OLDPATH=%PATH%
- set PATH=%PERL522%\perl\bin;%PERL522%\perl\site\bin;%PERL522%\c\bin;%OLDPATH%
- cd C:\projects\p5-Neovim-Ext
- cpanm --notest Dist::Zilla Dist::Zilla::PluginBundle::Author::ALEXBIO Pod::Coverage::TrustPod
- cpanm --quiet --notest Devel::Cover::Report::Coveralls Dist::Zilla::App::Command::cover
- dzil authordeps --missing | cpanm --notest
- dzil listdeps --missing | cpanm --notest
- perl -V

build_script:
- dzil test
104 changes: 104 additions & 0 deletions azure-pipelines.yml
@@ -0,0 +1,104 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
- master

strategy:
matrix:
linux-perl530:
PERL_VERSION: '5.30.0'
IMAGE: 'ubuntu-latest'
linux-perl528:
PERL_VERSION: '5.28.2'
IMAGE: 'ubuntu-latest'
linux-perl526:
PERL_VERSION: '5.26.3'
IMAGE: 'ubuntu-latest'
linux-perl524:
PERL_VERSION: '5.24.4'
IMAGE: 'ubuntu-latest'
linux-perl522:
PERL_VERSION: '5.22.4'
IMAGE: 'ubuntu-latest'
linux-perl520:
PERL_VERSION: '5.20.3'
IMAGE: 'ubuntu-latest'
linux-perl518:
PERL_VERSION: '5.18.4'
IMAGE: 'ubuntu-latest'
linux-perl516:
PERL_VERSION: '5.16.3'
IMAGE: 'ubuntu-latest'
linux-perl514:
PERL_VERSION: '5.14.4'
IMAGE: 'ubuntu-latest'
macos-perl530:
PERL_VERSION: '5.30.0'
IMAGE: 'macos-latest'
macos-perl528:
PERL_VERSION: '5.28.2'
IMAGE: 'macos-latest'
macos-perl526:
PERL_VERSION: '5.26.3'
IMAGE: 'macos-latest'
macos-perl524:
PERL_VERSION: '5.24.4'
IMAGE: 'macos-latest'
macos-perl522:
PERL_VERSION: '5.22.4'
IMAGE: 'macos-latest'

pool:
vmImage: $(IMAGE)

steps:
- script: |
wget -O - https://install.perlbrew.pl | bash
export PATH=~/perl5/bin:~/perl5/perlbrew/bin:$PATH
echo "##vso[task.setvariable variable=PATH]$PATH"
displayName: 'Install perlbrew'

- script: |
export PATH=~/perl5/bin:~/perl5/perlbrew/bin:~/perl5/perlbrew/perls/perl-$(PERL_VERSION)/bin:$PATH
echo "##vso[task.setvariable variable=PATH]$PATH"
perlbrew install --notest perl-$(PERL_VERSION)
perl -V
curl -L https://cpanmin.us | perl - App::cpanminus
displayName: 'Install perl'

- script: |
export PATH=~/perl5/bin:~/perl5/perlbrew/bin:~/perl5/perlbrew/perls/perl-$(PERL_VERSION)/bin:$PATH
echo "##vso[task.setvariable variable=PATH]$PATH"
cpanm --quiet --notest Dist::Zilla~">= 5.0000, < 6.0000"
cpanm --quiet --notest Dist::Zilla::PluginBundle::Author::ALEXBIO
cpanm --quiet --notest Pod::Coverage::TrustPod
cpanm --quiet --notest Devel::Cover::Report::Coveralls
cpanm --quiet --notest Dist::Zilla::App::Command::cover
dzil authordeps --missing | cpanm --quiet --notest
dzil listdeps --missing | cpanm --quiet --notest
displayName: 'Install CPAN dependencies'

- script: |
export PATH=~/perl5/bin:~/perl5/perlbrew/bin:~/perl5/perlbrew/perls/perl-$(PERL_VERSION)/bin:$PATH
echo "##vso[task.setvariable variable=PATH]$PATH"
export RELEASE_TESTING=1
export NETWORK_TESTING=1
export AUTOMATED_TESTING=1
export AUTHOR_TESTING=1
echo "##vso[task.setvariable variable=RELEASE_TESTING]$RELEASE_TESTING"
echo "##vso[task.setvariable variable=NETWORK_TESTING]$NETWORK_TESTING"
echo "##vso[task.setvariable variable=AUTOMATED_TESTING]$AUTOMATED_TESTING"
echo "##vso[task.setvariable variable=AUTHOR_TESTING]$AUTHOR_TESTING"
echo "##vso[task.setvariable variable=PERL_VERSION]$PERL_VERSION"
echo "##vso[task.setvariable variable=IMAGE]$IMAGE"
if [[ "$PERL_VERSION" == "5.30.0" ]] && [[ "$IMAGE" == "ubuntu-latest" ]]; then
dzil cover -ignore_re ^deps -ignore_re CORE -ignore_re ^const -test -report coveralls
else
dzil test
fi
env:
COVERALLS_REPO_TOKEN: $(COVERALLS_TOKEN)
displayName: 'Build/Test'
36 changes: 36 additions & 0 deletions dist.ini
@@ -0,0 +1,36 @@
name = Neovim-Ext
author = Jacques Germishuys <jacquesg@cpan.org>
license = Perl_5
copyright_holder = Jacques Germishuys
copyright_year = 2019

[@Author::ALEXBIO]
repo = p5-Neovim-Ext
makemaker = 0

[Prereqs / ConfigureRequires]
perl = 5.008
ExtUtils::MakeMaker = 6.63_03
Class::Accessor = 0.34
MsgPack::Raw = 0.01
IO::Async = 0.74

[Prereqs / TestRequires]
Archive::Tar = 0.0
Archive::Zip = 0.0
Proc::Background = 0.0
Test::Pod = 0.0
Test::Pod::Coverage = 0.0
HTTP::Tiny = 0.0
File::Slurper = 0.0
File::Which = 0.0

[MinimumPerl]
[MetaProvides::Package]

[=inc::MakeMaker / MakeMaker]

[PruneFiles]
filename = README.pod
filename = appveyor.yml
filename = .travis.yml
53 changes: 53 additions & 0 deletions inc/MakeMaker.pm
@@ -0,0 +1,53 @@
package inc::MakeMaker;

use Moose;
use Config;

extends 'Dist::Zilla::Plugin::MakeMaker::Awesome';

override _build_MakeFile_PL_template => sub {
my ($self) = @_;

my $template = <<'TEMPLATE';
use strict;
use warnings;
# This Makefile.PL for {{ $distname }} was generated by Dist::Zilla.
# Don't edit it but the dist.ini used to construct it.
{{ $perl_prereq ? qq[BEGIN { require $perl_prereq; }] : ''; }}
use strict;
use warnings;
use ExtUtils::MakeMaker {{ $eumm_version }};
use ExtUtils::Constant qw (WriteConstants);
{{ $share_dir_block[0] }}
my {{ $WriteMakefileArgs }}
unless (eval { ExtUtils::MakeMaker->VERSION(6.56) }) {
my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
my $pp = $WriteMakefileArgs{PREREQ_PM};
for my $mod (keys %$br) {
if (exists $pp -> {$mod}) {
$pp -> {$mod} = $br -> {$mod}
if $br -> {$mod} > $pp -> {$mod};
} else {
$pp -> {$mod} = $br -> {$mod};
}
}
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker -> VERSION(6.52) };
WriteMakefile (%WriteMakefileArgs);
exit (0);
{{ $share_dir_block[1] }}
TEMPLATE

return $template;
};

__PACKAGE__ -> meta -> make_immutable;

0 comments on commit 41a6389

Please sign in to comment.