summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/perl.yml37
-rw-r--r--.travis.yml6
-rw-r--r--cpanfile26
3 files changed, 63 insertions, 6 deletions
diff --git a/.github/workflows/perl.yml b/.github/workflows/perl.yml
new file mode 100644
index 0000000..dc02d1e
--- /dev/null
+++ b/.github/workflows/perl.yml
@@ -0,0 +1,37 @@
+name: linux
+
+on:
+ push:
+ branches:
+ - '*'
+ pull_request:
+ branches:
+ - '*'
+
+jobs:
+ perl:
+
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ perl-version:
+ - '5.20'
+ - 'latest'
+ - 'threaded'
+
+ container:
+ image: perl:${{ matrix.perl-version }}
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: perl -V
+ run: perl -V
+ - name: Install Dependencies
+ run: curl -sL https://git.io/cpm | perl - install -g --show-build-log-on-failure
+ - name: Pre-Build
+ run: perl Build.PL
+ - name: Build
+ run: ./Build
+ - name: Run Tests
+ run: prove -bl t
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 0fcf3ca..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-language: perl
-perl:
- - "5.28"
- - "5.26"
- - "5.24"
- - "5.22"
diff --git a/cpanfile b/cpanfile
new file mode 100644
index 0000000..7201dc4
--- /dev/null
+++ b/cpanfile
@@ -0,0 +1,26 @@
+requires 'Cache::File';
+requires 'Carp';
+requires 'Class::Accessor';
+requires 'DateTime';
+requires 'DateTime::Format::Strptime';
+requires 'Encode';
+requires 'Geo::Distance';
+requires 'Getopt::Long';
+requires 'List::Compare' => '0.29',
+requires 'List::MoreUtils';
+requires 'List::Util';
+requires 'List::UtilsBy';
+requires 'LWP::UserAgent';
+requires 'Text::LevenshteinXS';
+requires 'XML::LibXML';
+
+on test => sub {
+ requires 'File::Slurp';
+ requires 'JSON';
+ requires 'Test::Compile';
+ requires 'Test::Fatal';
+ requires 'Test::More';
+ requires 'Test::Number::Delta';
+ requires 'Test::Pod';
+ requires 'Text::CSV';
+};