Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to manual travisyml #7

Merged
merged 11 commits into from
Aug 25, 2017
54 changes: 20 additions & 34 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,31 @@
branches:
only:
- master
sudo: false
language: perl
perl:
- '5.8'
- '5.10'
- '5.12'
- '5.14'
- '5.16'
- '5.18'
- '5.20'
- '5.22'
- dev
- '5.24'
- 'dev'
- 'blead'
env:
- BUILD=0
- BUILD=1
matrix:
allow_failures:
- env: BUILD=0
perl: dev
- env: BUILD=0
perl: 'blead'
- env: BUILD=1
perl: dev
- env: BUILD=1
perl: 'blead'
fast_finish: true
include:
- perl: '5.26'
env: COVERAGE=1
allow_failures:
- perl: 'dev'
- perl: 'blead'
# Kavorka needs 5.14
- perl: '5.8'
- perl: '5.10'
- perl: '5.12'
fast_finish: true
before_install:
- 'if [[ $BUILD == 1 && ! -d .build/testing ]]; then unset BUILD; fi'
- export AUTOMATED_TESTING=1 NONINTERACTIVE_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1
- git clone git://github.com/haarg/perl-travis-helper
- source perl-travis-helper/init
- build-perl
- perl -V
- 'if [[ $BUILD == 0 ]]; then git config --global user.name "TravisCI"; fi'
- 'if [[ $BUILD == 0 ]]; then git config --global user.email $HOSTNAME":not-for-mail@travis-ci.org"; fi'
- 'if [[ $BUILD == 1 ]]; then cd .build/testing; fi'
- 'if [[ $BUILD == 1 ]]; then export AUTHOR_TESTING=0; fi'
install:
- 'if [[ $BUILD == 0 ]]; then cpanm --quiet --notest --skip-satisfied Dist::Zilla; fi'
- "if [[ $BUILD == 0 ]]; then dzil authordeps --missing | grep -vP '[^\\w:]' | xargs -n 5 -P 10 cpanm --quiet --notest; fi"
- "if [[ $BUILD == 0 ]]; then dzil listdeps --author --missing | grep -vP '[^\\w:]' | xargs -n 5 -P 10 cpanm --quiet --notest; fi"
- 'if [[ $BUILD == 1 ]]; then cpanm --installdeps --verbose --notest .; fi'
script:
- 'if [[ $BUILD == 0 ]]; then dzil smoke --release --author; fi'
- 'if [[ $BUILD == 1 && -f Makefile.PL ]]; then perl Makefile.PL && make test; fi'
- 'if [[ $BUILD == 1 && -f Build.PL ]]; then perl Build.PL && ./Build test; fi'
- 'if [[ $BUILD == 1 && ! -f Makefile.PL && ! -f Build.PL ]]; then make test; fi'
- eval $(curl https://travis-perl.github.io/init) --auto
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CloudFlare::Client [![Build Status](https://travis-ci.org/pwr22/cloudflare-client.svg?branch=master)](https://travis-ci.org/pwr22/cloudflare-client)
# CloudFlare::Client [![Build Status](https://travis-ci.org/pwr22/cloudflare-client.svg?branch=master)](https://travis-ci.org/pwr22/cloudflare-client) [![Coverage Status](https://coveralls.io/repos/github/pwr22/cloudflare-client/badge.svg?branch=master)](https://coveralls.io/github/pwr22/cloudflare-client?branch=master)

Perl module providing an object orientated interface to CloudFlare's client API

Expand Down
21 changes: 0 additions & 21 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ version_regexp = ^(v.+)$
[NextRelease]
format = %-9v %{yyyy-MM-dd}d

[TravisYML]
test_deps = 0
perl_version = 5.14 5.16 5.18 5.20 5.22 -dev -blead
support_builddir = 1

; Set meta
[GitHub::Meta]
[MetaProvides::Package]
Expand Down Expand Up @@ -65,9 +60,6 @@ Test::RequiresInternet = 0
[MetaJSON]
[CPANFile]

; Build check
[EnsurePrereqsInstalled]

; Release checks
[Git::CheckFor::CorrectBranch]
[Git::Remote::Check]
Expand All @@ -79,35 +71,22 @@ allow_dirty = Changes
[CheckChangesHasContent]
[CheckVersionIncrement]
[TestRelease]
;[Travis::TestRelease]
;create_builddir = 1
[ConfirmRelease]

; Release
[UploadToCPAN]


; Update git stuff
[Git::Commit]
allow_dirty = .travis.yml
allow_dirty = dist.ini
allow_dirty = Changes
commit_msg = %v%n%n%c
[Git::CommitBuild]
branch =
release_branch = build/%b
release_message = Build release %v (from %h on %b)
multiple_inheritance = 1
[Git::Tag / master]
tag_format = %v
tag_message = %v%n%n%c
[Git::Tag / build]
branch = build/master
tag_format = %v-build
tag_message = %v%n%n%c
[Git::Push]
push_to = origin
push_to = origin build/master:build/master

; Clean after committing to git
[Clean]