Skip to content
Permalink
Browse files

Skip most tests when not under Travis (#12)

* Skip most tests when not under Travis

We need to run ./config/geth_setup.sh under Travis for these to run
correctly, so skip these when not under our current CI environment.

* .travis.yml: Drop Perl versions we don't use
  • Loading branch information...
zakame authored and jy-binary committed Jun 15, 2019
1 parent 561a817 commit f4a5a9a68baca9557fbee30b8690d5586d89b0db
Showing with 16 additions and 2 deletions.
  1. +1 −2 .travis.yml
  2. +5 −0 t/00.web3_clientVersion.t
  3. +5 −0 t/Crowdsale.t
  4. +5 −0 t/ERC20.t
@@ -3,8 +3,7 @@ language: perl
matrix:
fast_finish: true
perl:
- '5.24'
- '5.14'
- '5.26'
before_install:
- git config --global user.name "TravisCI"
- git config --global user.email $HOSTNAME":not-for-mail@travis-ci.org"
@@ -3,6 +3,11 @@ use warnings;
use Test::More;
use Ethereum::RPC::Client;

BEGIN {
plan skip_all => 'Needs Travis setup'
unless $ENV{TRAVIS};
}

my $eth = Ethereum::RPC::Client->new();
my $web3_clientVersion = $eth->web3_clientVersion;
diag "Got $web3_clientVersion";
@@ -7,6 +7,11 @@ use Ethereum::RPC::Contract::Helper::UnitConversion;
use Math::BigInt;
use JSON;

BEGIN {
plan skip_all => 'Needs Travis setup'
unless $ENV{TRAVIS};
}

my $rpc_client = Ethereum::RPC::Client->new;

my $coinbase = $rpc_client->eth_coinbase;
@@ -7,6 +7,11 @@ use Math::BigInt;
use Ethereum::RPC::Client;
use Ethereum::RPC::Contract::Helper::ImportHelper;

BEGIN {
plan skip_all => 'Needs Travis setup'
unless $ENV{TRAVIS};
}

my $rpc_client = Ethereum::RPC::Client->new;

my $coinbase = $rpc_client->eth_coinbase;

0 comments on commit f4a5a9a

Please sign in to comment.
You can’t perform that action at this time.