Added Travis config (based on cfg from Catalyst)
Henry Van Styn [Fri, 26 Sep 2014 21:54:54 +0000 (17:54 -0400)]
.gitignore
.travis.yml [new file with mode: 0644]

index 0241fe4..bb87d85 100644 (file)
@@ -1,4 +1,3 @@
-.*
 !.gitignore
 Makefile*
 !Makefile.PL
diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..c98995e
--- /dev/null
@@ -0,0 +1,33 @@
+language: perl
+perl:
+   - "5.20"
+   - "5.18"
+   - "5.16"
+   - "5.14"
+   - "5.12"
+   - "5.10"
+   - "5.8"
+
+install:
+  # Based on Catalyst travis cfg:
+
+   # M::I deps
+   - cpanm --notest --metacpan --skip-satisfied Module::Install Module::Install::AuthorRequires Module::Install::CheckConflicts Module::Install::AuthorTests Module::Install::Authority
+
+   # author deps -- wish there was a better way
+   - cpanm --notest --metacpan --skip-satisfied CatalystX::LeakChecker Catalyst::Devel Catalyst::Engine::PSGI Starman MooseX::Daemonize Test::WWW::Mechanize::Catalyst Catalyst::Plugin::Params::Nested
+   - cpanm --notest --metacpan --skip-satisfied Test::Without::Module Test::NoTabs Test::Pod Test::Pod::Coverage Test::Spelling Pod::Coverage::TrustPod
+   - cpanm --notest --metacpan --skip-satisfied --installdeps .
+   - echo y | perl Makefile.PL
+
+   # enable various test options, including parallel testing
+   - export AUTOMATED_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1
+
+   # we want these for our tests, but not for any others
+   - export AUTHOR_TESTING=1
+   - export RELEASE_TESTING=1
+
+   - make manifest
+
+script:
+   - make disttest