diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..c7e798d --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,48 @@ +jobs: + test: + parameters: + perl-version: + description: The Perl version we want to test with + type: string + default: "5.34" + docker: + - image: perldocker/perl-tester:<< parameters.perl-version >> + steps: + - checkout + - run: + command: + cpm install -g --no-test Dist::Zilla Dist::Zilla::App::Command::cover + name: Install Dzil + - run: + name: Install dzil author dependencies + command: | + cpm install -g \ + -w 2 \ + --mirror=http://cpan.cpantesters.org/ $(dzil authordeps --missing) + - run: + name: Install dist deps + command: | + cpm install -g \ + -w 2 \ + --mirror=http://cpan.cpantesters.org/ $(dzil listdeps --author --missing) + - run: + name: Run Tests + command: | + dzil smoke --release --author && dzil cover -test && dzil xtest + +workflows: + build-workflow: + jobs: &1 + - test: + matrix: + parameters: + perl-version: + - "5.20" + - "5.22" + - "5.24" + - "5.26" + - "5.28" + - "5.30" + - "5.32" + - "5.34" +version: 2.1 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2a28e13..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -sudo: false -language: perl -matrix: - fast_finish: true -perl: - - '5.26' -before_install: - - git config --global user.name "TravisCI" - - git config --global user.email $HOSTNAME":not-for-mail@travis-ci.org" -install: - - cpanm --quiet --notest Dist::Zilla Dist::Zilla::App::Command::cover App::cpm Devel::Cover::Report::Codecov - - cpm install -w 2 --mirror=http://cpan.cpantesters.org/ -g $(dzil authordeps --missing) - - cpm install -w 2 --mirror=http://cpan.cpantesters.org/ -g $(dzil listdeps --author --missing) - -script: - - dzil smoke --release --author && dzil cover -test -report codecov && dzil xtest -