Skip to content

new config #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 85 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,94 @@
version: 2
alias:
- &install_dzil
run:
command: |
cpm install -g --no-test Dist::Zilla Dist::Zilla::App::Command::cover ExtUtils::MakeMaker
name: Install Dzil
- &install_author_deps
run:
name: Install dzil author dependencies
command: |
cpm install --no-test -g \
-w 2 \
--mirror=http://cpan.cpantesters.org/ $(dzil authordeps --missing)
- &install_deps
run:
name: Install dist deps
command: |
# see https://github.com/team-at-cpan/Dist-Zilla-Plugin-PodInherit/issues/1 to check why we not use
# dzil listdeps --missing directly here
cpanm -n --installdeps .
dzil listdeps --author --missing --cpanm-versions | xargs cpanm -n

jobs:
build:
test:
parameters:
perl-version:
description: The Perl version we want to test with
type: string
default: "5.34"
docker:
- image: debian:bullseye
- image: perldocker/perl-tester:<< parameters.perl-version >>
steps:
- checkout
- *install_dzil
- *install_author_deps
- *install_deps
- run:
name: Install Perl packages
command: apt-get update && apt-get install -y cpanminus make gcc openssl libssl-dev zlib1g-dev git
- run:
name: Install dzil
command: cpanm --notest Dist::Zilla Dist::Zilla::App::Command::cover App::cpm Devel::Cover::Report::Codecov https://cpan.metacpan.org/authors/id/S/SR/SRI/Mojolicious-7.29.tar.gz https://cpan.metacpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.30.tar.gz
- run:
name: Install dzil author deps
command: cpm install --show-build-log-on-failure -w 2 --mirror=http://cpan.cpantesters.org/ -g $(dzil authordeps --missing)
- run:
name: Install distribution deps
command: cpm install --show-build-log-on-failure -w 2 --mirror=http://cpan.cpantesters.org/ -g $(dzil listdeps --author --missing)
name: Run Tests
command: |
dzil smoke --release --author && dzil cover -test -report codecov && dzil xtest
release:
docker:
- image: perldocker/perl-tester:5.34
steps:
- checkout
- *install_dzil
- *install_author_deps
- *install_deps
- run:
name: Run smoke test
command: dzil smoke --release --author
name: setup PAUSE account
command: |
echo -e "user $PAUSE_USER\npassword $PAUSE_PASSWORD\n" >> ~/.pause
- run:
name: Run coverage test
command: dzil cover -test -report codecov
name: setup git
command: |
git config --global user.email "[email protected]"
git config --global user.name "circleci"
# set remote github because dzil will push to github
# https://metacpan.org/release/DERIV/Dist-Zilla-PluginBundle-Author-DERIV-0.003/source/lib/Dist/Zilla/PluginBundle/Author/DERIV.pm#L122
git remote add github $(git remote get-url origin)
- run:
name: Run extended author test
command: dzil xtest
name: Release to PAUSE
command: |
if grep -Pzq '\{\{\$NEXT\}\}\n\s*\n' Changes
then
echo "No changes, no need release"
exit 0
fi
# use git push to test permission
git push github master
echo "y\n" | DZIL_CONFIRMRELEASE_DEFAULT=y dzil release

workflows:
build-workflow:
jobs: &1
- test:
matrix:
parameters:
perl-version:
- "5.24"
- "5.26"
- "5.28"
- "5.30"
- "5.32"
- "5.34"
- release:
context: release-binary
requires:
- test
filters:
branches:
only:
- master
version: 2.1
10 changes: 5 additions & 5 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Revision history for Perl module Mojo::WebSocketProxy
{{$NEXT}}
- Move Mojo::WebSocketProxy::Backend::JobAsync and Mojo::WebSocketProxy::Backend::ConsumerGroups out

{{$NEXT}}
0.14 2022-11-09 07:45:53+00:00 UTC
- Move Mojo::WebSocketProxy::Backend::JobAsync and Mojo::WebSocketProxy::Backend::ConsumerGroups out
- Add support for separating messages to different channels with
different timeout values for each channel.
- Increase minimum Perl version from 5.014 to 5.024 for the module.
Expand Down Expand Up @@ -52,11 +52,11 @@ Revision history for Perl module Mojo::WebSocketProxy
0.04 2017-02-21 02:16:06+00:00 UTC
- Switch to dzil

0.03 Thu Jun 9 15:50:00 2016
0.03 2016-06-09 15:50:00
- Use before send hook to check response size

0.02 Thu Jun 9 09:28:00 2016
0.02 2016-06-09 09:28:00
- Minor fixes

0.01 Thu Jun 2 06:02:18 2016
0.01 2016-0602 06:02:18
- First version, released on an unsuspecting world.
64 changes: 52 additions & 12 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,43 +1,61 @@
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.012.
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.024.
use strict;
use warnings;

use 5.014000;
use 5.024000;

use ExtUtils::MakeMaker 7.1101;
use ExtUtils::MakeMaker 7.64;

my %WriteMakefileArgs = (
"ABSTRACT" => "WebSocket proxy for JSON-RPC 2.0 server",
"AUTHOR" => "binary.com <BINARY\@cpan.org>",
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => "7.1101"
"ExtUtils::MakeMaker" => "7.64"
},
"DISTNAME" => "Mojo-WebSocketProxy",
"LICENSE" => "perl",
"MIN_PERL_VERSION" => "5.014000",
"MIN_PERL_VERSION" => "5.024000",
"NAME" => "Mojo::WebSocketProxy",
"PREREQ_PM" => {
"Class::Method::Modifiers" => 0,
"Data::UUID" => 0,
"DataDog::DogStatsd::Helper" => "0.05",
"Encode" => 0,
"Future" => "0.36",
"Future::Mojo" => "0.004",
"Future::Utils" => 0,
"IO::Async::Loop::Mojo" => 0,
"JSON::MaybeUTF8" => 0,
"Job::Async" => 0,
"Log::Any" => 0,
"Mojo::Base" => 0,
"Mojo::Redis2" => 0,
"Mojo::Util" => 0,
"MojoX::JSON::RPC" => 0,
"MojoX::JSON::RPC::Client" => 0,
"Mojolicious" => "7.29",
"Scalar::Util" => 0,
"Syntax::Keyword::Try" => "0.04",
"Unicode::Normalize" => "1.25",
"constant" => 0,
"curry" => "1.001",
"feature" => 0,
"indirect" => 0,
"Mojo::Redis2" => 0,
"Data::UUID" => 0
"parent" => 0,
"strict" => 0,
"warnings" => 0
},
"TEST_REQUIRES" => {
"Exporter" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"Future" => "0.36",
"IO::Handle" => 0,
"IPC::Open3" => 0,
"JSON::MaybeXS" => 0,
"Mojo::IOLoop" => 0,
"MojoX::JSON::RPC::Service" => 0,
"Mojolicious" => "7.29",
"Net::EmptyPort" => 0,
"Path::Tiny" => 0,
"Test::CheckDeps" => "0.010",
"Test::Fatal" => 0,
Expand All @@ -46,9 +64,11 @@ my %WriteMakefileArgs = (
"Test::Mojo" => 0,
"Test::More" => "0.98",
"Test::Simple" => "0.44",
"Test::TCP" => 0
"Test::TCP" => 0,
"Test::Warnings" => 0,
"base" => 0
},
"VERSION" => "0.13",
"VERSION" => "0.15",
"test" => {
"TESTS" => "t/*.t"
}
Expand All @@ -57,20 +77,33 @@ my %WriteMakefileArgs = (

my %FallbackPrereqs = (
"Class::Method::Modifiers" => 0,
"Data::UUID" => 0,
"DataDog::DogStatsd::Helper" => "0.05",
"Encode" => 0,
"Exporter" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"Future" => "0.36",
"Future::Mojo" => "0.004",
"Future::Utils" => 0,
"IO::Async::Loop::Mojo" => 0,
"IO::Handle" => 0,
"IPC::Open3" => 0,
"JSON::MaybeUTF8" => 0,
"Job::Async" => 0,
"JSON::MaybeXS" => 0,
"Log::Any" => 0,
"Mojo::Base" => 0,
"Mojo::IOLoop" => 0,
"Mojo::Redis2" => 0,
"Mojo::Util" => 0,
"MojoX::JSON::RPC" => 0,
"MojoX::JSON::RPC::Client" => 0,
"MojoX::JSON::RPC::Service" => 0,
"Mojolicious" => "7.29",
"Net::EmptyPort" => 0,
"Path::Tiny" => 0,
"Scalar::Util" => 0,
"Syntax::Keyword::Try" => "0.04",
"Test::CheckDeps" => "0.010",
"Test::Fatal" => 0,
"Test::MockModule" => 0,
Expand All @@ -79,9 +112,16 @@ my %FallbackPrereqs = (
"Test::More" => "0.98",
"Test::Simple" => "0.44",
"Test::TCP" => 0,
"Test::Warnings" => 0,
"Unicode::Normalize" => "1.25",
"base" => 0,
"constant" => 0,
"curry" => "1.001",
"indirect" => 0
"feature" => 0,
"indirect" => 0,
"parent" => 0,
"strict" => 0,
"warnings" => 0
);


Expand Down
Loading