summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-04-06 08:17:29 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-04-06 08:19:57 +0200
commit37d3485e633d9a288fe9dcf9b37a75c1ed90a485 (patch)
treed35669b87f6ed3c2e0ce5ce298d092c90b7dd6ed
parentcd60739c4ff0f782cba63a2a2953eb2cf748820f (diff)
Switch to Github CI
-rw-r--r--.github/workflows/perl.yml33
-rw-r--r--.travis.yml6
-rw-r--r--cpanfile14
3 files changed, 47 insertions, 6 deletions
diff --git a/.github/workflows/perl.yml b/.github/workflows/perl.yml
new file mode 100644
index 0000000..261b9e5
--- /dev/null
+++ b/.github/workflows/perl.yml
@@ -0,0 +1,33 @@
+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: Run Tests
+ run: prove -l 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..edb0fec
--- /dev/null
+++ b/cpanfile
@@ -0,0 +1,14 @@
+requires 'Class::Accessor';
+requires 'Exception::Class';
+requires 'Getopt::Long';
+requires 'List::Util';
+requires 'LWP::UserAgent';
+requires 'XML::LibXML';
+
+on test => sub {
+ requires 'File::Slurp';
+ requires 'Test::Compile';
+ requires 'Test::Fatal';
+ requires 'Test::More';
+ requires 'Test::Pod';
+};