diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c4dc0a3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +before_install: +- sudo apt-get update -qq +- sudo apt-get install -qq perl libtest-strict-perl +script: prove diff --git a/README.md b/README.md index 2691376..f4b3b37 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/virtualmin/virtualmin-awstats.svg?branch=master)](https://travis-ci.org/virtualmin/virtualmin-awstats) + # virtualmin-awstats Virtualmin plugin to manage AWstats analytics and provide a UI for domain owners to view their own reports diff --git a/t/all_ok.t b/t/all_ok.t new file mode 100644 index 0000000..1dcc3df --- /dev/null +++ b/t/all_ok.t @@ -0,0 +1,6 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use Test::Strict 'no_plan'; + +all_perl_files_ok(); diff --git a/t/awstats-syntax.t b/t/awstats-syntax.t deleted file mode 100644 index af686b9..0000000 --- a/t/awstats-syntax.t +++ /dev/null @@ -1,5 +0,0 @@ -use Test::Strict tests => 3; # last test to print - -syntax_ok( 'awstats.pl' ); -strict_ok( 'awstats.pl' ); -warnings_ok( 'awstats.pl' ); diff --git a/t/cgi_args-syntax.t b/t/cgi_args-syntax.t deleted file mode 100644 index e18fa74..0000000 --- a/t/cgi_args-syntax.t +++ /dev/null @@ -1,5 +0,0 @@ -use Test::Strict tests => 3; # last test to print - -syntax_ok( 'cgi_args.pl' ); -strict_ok( 'cgi_args.pl' ); -warnings_ok( 'cgi_args.pl' ); diff --git a/t/config-syntax.t b/t/config-syntax.t deleted file mode 100644 index 6944fd7..0000000 --- a/t/config-syntax.t +++ /dev/null @@ -1,5 +0,0 @@ -use Test::Strict tests => 3; # last test to print - -syntax_ok( 'config.cgi' ); -strict_ok( 'config.cgi' ); -warnings_ok( 'config.cgi' ); diff --git a/t/config_save-syntax.t b/t/config_save-syntax.t deleted file mode 100644 index 801e01d..0000000 --- a/t/config_save-syntax.t +++ /dev/null @@ -1,5 +0,0 @@ -use Test::Strict tests => 3; # last test to print - -syntax_ok( 'config_save.cgi' ); -strict_ok( 'config_save.cgi' ); -warnings_ok( 'config_save.cgi' ); diff --git a/t/edit-syntax.t b/t/edit-syntax.t deleted file mode 100644 index 9cfc6c9b..0000000 --- a/t/edit-syntax.t +++ /dev/null @@ -1,5 +0,0 @@ -use Test::Strict tests => 3; # last test to print - -syntax_ok( 'edit.cgi' ); -strict_ok( 'edit.cgi' ); -warnings_ok( 'edit.cgi' ); diff --git a/t/generate-syntax.t b/t/generate-syntax.t deleted file mode 100644 index a4a18f6..0000000 --- a/t/generate-syntax.t +++ /dev/null @@ -1,5 +0,0 @@ -use Test::Strict tests => 3; # last test to print - -syntax_ok( 'generate.cgi' ); -strict_ok( 'generate.cgi' ); -warnings_ok( 'generate.cgi' ); diff --git a/t/icon-syntax.t b/t/icon-syntax.t deleted file mode 100644 index 2450958..0000000 --- a/t/icon-syntax.t +++ /dev/null @@ -1,5 +0,0 @@ -use Test::Strict tests => 3; # last test to print - -syntax_ok( 'icon.cgi' ); -strict_ok( 'icon.cgi' ); -warnings_ok( 'icon.cgi' ); diff --git a/t/index-syntax.t b/t/index-syntax.t deleted file mode 100644 index 7a1bbba..0000000 --- a/t/index-syntax.t +++ /dev/null @@ -1,5 +0,0 @@ -use Test::Strict tests => 3; # last test to print - -syntax_ok( 'index.cgi' ); -strict_ok( 'index.cgi' ); -warnings_ok( 'index.cgi' ); diff --git a/t/run-all-awstats-syntax.t b/t/run-all-awstats-syntax.t deleted file mode 100644 index cd42823..0000000 --- a/t/run-all-awstats-syntax.t +++ /dev/null @@ -1,5 +0,0 @@ -use Test::Strict tests => 3; # last test to print - -syntax_ok( 'run-all-awstats.pl' ); -strict_ok( 'run-all-awstats.pl' ); -warnings_ok( 'run-all-awstats.pl' ); diff --git a/t/save-syntax.t b/t/save-syntax.t deleted file mode 100644 index 9d9586e..0000000 --- a/t/save-syntax.t +++ /dev/null @@ -1,5 +0,0 @@ -use Test::Strict tests => 3; # last test to print - -syntax_ok( 'save.cgi' ); -strict_ok( 'save.cgi' ); -warnings_ok( 'save.cgi' ); diff --git a/t/view-syntax.t b/t/view-syntax.t deleted file mode 100644 index 51d76df..0000000 --- a/t/view-syntax.t +++ /dev/null @@ -1,5 +0,0 @@ -use Test::Strict tests => 3; # last test to print - -syntax_ok( 'view.cgi' ); -strict_ok( 'view.cgi' ); -warnings_ok( 'view.cgi' ); diff --git a/t/virtual_feature-syntax.t b/t/virtual_feature-syntax.t deleted file mode 100644 index 0825ca8..0000000 --- a/t/virtual_feature-syntax.t +++ /dev/null @@ -1,5 +0,0 @@ -use Test::Strict tests => 3; # last test to print - -syntax_ok( 'virtual_feature.pl' ); -strict_ok( 'virtual_feature.pl' ); -warnings_ok( 'virtual_feature.pl' ); diff --git a/t/virtualmin-awstats-lib-syntax.t b/t/virtualmin-awstats-lib-syntax.t deleted file mode 100644 index dcc7c19..0000000 --- a/t/virtualmin-awstats-lib-syntax.t +++ /dev/null @@ -1,5 +0,0 @@ -use Test::Strict tests => 3; # last test to print - -syntax_ok( 'virtualmin-awstats-lib.pl' ); -strict_ok( 'virtualmin-awstats-lib.pl' ); -warnings_ok( 'virtualmin-awstats-lib.pl' );