File: changes_has_content.t

package info (click to toggle)
libtest-eol-perl 2.02-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 304 kB
  • sloc: perl: 341; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 548 bytes parent folder | download | duplicates (30)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings;

use Test::More;
plan skip_all => 'xt/release/changes_has_content.t is missing' if not -e 'xt/release/changes_has_content.t';

# skip for master branch, only for travis
if (($ENV{TRAVIS_PULL_REQUEST} || '') eq 'false') {
    chomp(my $branch_name = ($ENV{TRAVIS_BRANCH} || `git rev-parse --abbrev-ref HEAD`));
    $TODO = 'Changes need not have content for this release yet if this is only the '.$1.' branch'
        if ($branch_name || '') =~ /^(master|devel)$/;
}

do './xt/release/changes_has_content.t';
die $@ if $@;