Skip to content

Commit

Permalink
Merge 7cbc6f7 into 497b4e0
Browse files Browse the repository at this point in the history
  • Loading branch information
bayashi committed Feb 11, 2020
2 parents 497b4e0 + 7cbc6f7 commit a9b7d3f
Show file tree
Hide file tree
Showing 10 changed files with 355 additions and 78 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: build_old

on:
push:
Expand All @@ -18,7 +18,6 @@ jobs:
- '5.8'
- '5.18'
- '5.28'
- 'latest'

container:
image: perl:${{ matrix.perl-version }}
Expand All @@ -27,20 +26,13 @@ jobs:
- uses: actions/checkout@v1
- name: perl -V
run: perl -V
- name: Install cpanm
run: curl -L http://cpanmin.us/ | perl - App::cpanminus
- name: Install dependencies
run: curl -sL https://git.io/cpm | perl - install -g --with-recommends --with-test --with-configure --show-build-log-on-failure
if: matrix.perl-version != 'latest'
- name: Install dependencies with develop
run: cpanm -n --installdeps . --with-recommends --with-suggests --with-develop --with-configure --with-feature
- name: Run build
run: |
curl -sL https://git.io/cpm | perl - install -g --with-recommends --with-test --with-configure --with-develop --show-build-log-on-failure
curl -sL https://git.io/cpm | perl - install -g --show-build-log-on-failure Devel::Cover::Report::Coveralls
if: matrix.perl-version == 'latest'
- name: Run tests
run: perl Build.PL && ./Build build
- name: Run Cover
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
cover -test
cover -report coveralls
if: matrix.perl-version == 'latest'
perl Build.PL
./Build manifest
- name: Run test
run: ./Build test
36 changes: 36 additions & 0 deletions .github/workflows/build_cover.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: build_cover

on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:

jobs:
perl:
runs-on: ubuntu-latest

container:
image: perl:latest

steps:
- uses: actions/checkout@v1
- name: perl -V
run: perl -V
- name: Install dependencies
run: curl -L http://cpanmin.us/ | perl - -n -q --installdeps . --with-recommends --with-suggests --with-develop --with-configure --with-feature
- name: Run build
run: |
perl Build.PL
./Build manifest
- name: Run test
run: ./Build test
- name: Run Cover
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
curl -sL https://git.io/cpm | perl - install -g --show-build-log-on-failure Devel::Cover::Report::Coveralls
cover -test
cover -report coveralls
14 changes: 8 additions & 6 deletions .github/workflows/build_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ jobs:
- uses: actions/checkout@master
- name: perl -V
run: perl -V
- name: Install dependencies with develop
run: curl -sL https://git.io/cpm | perl - install -g --with-recommends --with-test --with-configure --with-develop --show-build-log-on-failure
- name: Run Build.PL
run: perl Build.PL
- name: Run Build
run: ./Build build
- name: Install dependencies
run: curl -L http://cpanmin.us/ | perl - -n -q --installdeps . --with-recommends --with-suggests --with-develop --with-configure --with-feature
- name: Run build
run: |
perl Build.PL
./Build manifest
- name: Run test
run: ./Build test
25 changes: 19 additions & 6 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,22 @@ jobs:
echo "##[add-path]C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin"
- name: perl -V
run: perl -V
- name: Install dependencies with develop
run: curl -sL https://git.io/cpm | perl - install -g --with-recommends --with-test --with-configure --with-develop --show-build-log-on-failure
- name: Run Build.PL
run: perl Build.PL
- name: Run Build
run: ./Build build
- name: Install dependencies
run: curl -L http://cpanmin.us/ | perl - -n -q --installdeps . --with-recommends --with-suggests --with-develop --with-configure --with-feature
- name: Show Info
run: |
perldoc -l Win32
dir
perl -e "print join(' ', @INC);"
perl -e "print `dir $_` for @INC;"
- name: Run build
run: |
perl Build.PL
./Build manifest
- name: Run test
run: |
perldoc -l Win32
dir
perl -e "print join(' ', @INC);"
perl -e "print `dir $_` for @INC;"
./Build test
31 changes: 31 additions & 0 deletions .github/workflows/build_xt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: build_xt

on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:

jobs:
perl:
runs-on: ubuntu-latest

container:
image: perl:latest

steps:
- uses: actions/checkout@v1
- name: perl -V
run: perl -V
- name: Install dependencies
run: curl -L http://cpanmin.us/ | perl - -n -q --installdeps . --with-recommends --with-suggests --with-develop --with-configure --with-feature
- name: Install Dev modules
run: curl -sL https://git.io/cpm | perl - install -g --show-build-log-on-failure Test::Perl::Critic Test::Pod::Coverage Test::Pod Test::NoTabs Test::Vars Test::File::Find::Rule
- name: Run build
run: |
perl Build.PL
./Build manifest
- name: Run test
run: ./Build test
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ nytprof*
MANIFEST.bak
*.sw[po]
META.yml
META.json
MYMETA.*
*.tar.gz
Duadua-*
34 changes: 31 additions & 3 deletions Build.PL
Original file line number Diff line number Diff line change
@@ -1,13 +1,41 @@
use strict;
use warnings;
use Module::Build::Pluggable qw/CPANfile/;
use Module::Build;

my $builder = Module::Build::Pluggable->new(
name => 'Duadua',
my %win_build_requires = ();

if ($^O eq 'MSWin32') {
%win_build_requires = (
'Win32' => 0
);
}

my $builder = Module::Build->new(
module_name => 'Duadua',
license => 'artistic_2',
dist_author => 'Dai Okabayashi <bayashi@cpan.org>',
dist_version_from => 'lib/Duadua.pm',
configure_requires => {
'Module::Build' => 0.40,
},
test_requires => {
'File::Basename' => 0,
'YAML' => '1.15',
'List::Util' => 0,
'Test::More' => '1.3',
'Test::AllModules' => '0.17',
'Capture::Tiny' => 0,
%win_build_requires,
},
requires => {
'perl' => '5.008005',
'strict' => 0,
'warnings' => 0,
'Module::Pluggable::Object' => 0,
'Pod::Usage' => 0,
'Getopt::Long' => 0,
'JSON' => 0,
},
add_to_cleanup => [ 'Duadua-*' ],
script_files => [ 'script/duadua' ],
add_to_cleanup => [ 'Duadua-*' ],
Expand Down

0 comments on commit a9b7d3f

Please sign in to comment.