Skip to content

Commit

Permalink
[travis-ci] skip some tests on osx.
Browse files Browse the repository at this point in the history
  • Loading branch information
gugod committed Jul 10, 2018
1 parent 4e512f7 commit 714ad81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/live-couchdb.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ use Hijk;
use URI;
use Time::HiRes 'time';

if ($ENV{TRAVIS} && $ENV{TRAVIS_OS_NAME} eq 'osx') {
plan skip_all => "No elasticsearch service in this environment at the moment.";
}

plan skip_all => "Enable live testing by setting env: TEST_LIVE=1" unless $ENV{TEST_LIVE};
plan skip_all => "Enable live CouchDB testing by setting env: TEST_COUCHDB=http://localhost:5984/" unless $ENV{TEST_COUCHDB};

Expand Down
4 changes: 4 additions & 0 deletions t/live-elasticsearch.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ use warnings;
use Hijk;
use Test::More;

if ($ENV{TRAVIS} && $ENV{TRAVIS_OS_NAME} eq 'osx') {
plan skip_all => "No elasticsearch service in this environment at the moment.";
}

unless ($ENV{TEST_LIVE}) {
plan skip_all => "Enable live testing by setting env: TEST_LIVE=1";
}
Expand Down

0 comments on commit 714ad81

Please sign in to comment.