diff --git a/.travis.yml b/.travis.yml index 0811751..9f1f77d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ matrix: - os: osx allow_failures: - os: osx - + before_install: - sudo ./install.sh all @@ -19,8 +19,6 @@ install: - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install -qq openssl; else brew install openssl; fi - if [ $TRAVIS_OS_NAME = linux ]; then cpanm Sparrow --sudo --notest -q; fi - if [ $TRAVIS_OS_NAME = linux ]; then sparrow index update; fi - - if [ $TRAVIS_OS_NAME = linux ]; then sparrow plg install bash-snippets-interactive-test; fi script: - - if [ $TRAVIS_OS_NAME = linux ]; then sparrow plg run bash-snippets-interactive-test --param dir=$PWD; fi - bats tests diff --git a/bash-snippets-interactive-test/README.md b/bash-snippets-interactive-test/README.md deleted file mode 100644 index 6e02eb5..0000000 --- a/bash-snippets-interactive-test/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# SYNOPSIS - -Run tests against BashSnippets tools with interactive prompt. - -# INSTALL - - $ sparrow plg install bash-snippets-interactive-test - -# USAGE - - $ sparrow plg run bash-snippets-interactive-test --param dir=/path/to/bash-snippets/tools/directory - - -![report](https://raw.githubusercontent.com/melezhik/images/master/report.png) - -# Authors - -* The plugin maintainer is [Alexey Melezhik](https://github.com/melezhik/) - - - diff --git a/bash-snippets-interactive-test/cpanfile b/bash-snippets-interactive-test/cpanfile deleted file mode 100644 index e8a089f..0000000 --- a/bash-snippets-interactive-test/cpanfile +++ /dev/null @@ -1 +0,0 @@ -requires "Expect"; diff --git a/bash-snippets-interactive-test/hook.bash b/bash-snippets-interactive-test/hook.bash deleted file mode 100644 index 841982e..0000000 --- a/bash-snippets-interactive-test/hook.bash +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -run_story 'currency/example1' -run_story 'currency/example2' diff --git a/bash-snippets-interactive-test/modules/currency/example1/story.check b/bash-snippets-interactive-test/modules/currency/example1/story.check deleted file mode 100644 index 3bdcf3f..0000000 --- a/bash-snippets-interactive-test/modules/currency/example1/story.check +++ /dev/null @@ -1,15 +0,0 @@ -begin: -What is the base currency: USD -What currency to exchange to: RUB -What is the amount being exchanged: 0 -end: - -begin: -========================= -| USD to RUB -regexp: ^\|\s+Rate:\s+\d+\.\d+\s*$ -| USD: 0 -| RUB: 0 -========================= -end: - diff --git a/bash-snippets-interactive-test/modules/currency/example1/story.pl b/bash-snippets-interactive-test/modules/currency/example1/story.pl deleted file mode 100644 index f4fd5c4..0000000 --- a/bash-snippets-interactive-test/modules/currency/example1/story.pl +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env perl - -use Expect; - -use strict; - -my $tools_dir = config()->{dir}; - - - -my $exp = Expect->new; - -$exp->spawn("$tools_dir/currency/currency") - or die "Cannot spawn command: bash $tools_dir/currency/currency: $!\n"; - - -$exp->expect(120, - [ - qr/What is the base currency/ => sub { - my $exp = shift; - $exp->send("USD\n"); - exp_continue; - } - ], - [ - qr/What currency to exchange to/ => sub { - my $exp = shift; - $exp->send("RUB\n"); - exp_continue; - } - ], - [ - qr/What is the amount being exchanged/ => sub { - my $exp = shift; - $exp->send("0\n"); - exp_continue; - } - ], - ); - - -$exp->hard_close(); - - diff --git a/bash-snippets-interactive-test/modules/currency/example2/story.check b/bash-snippets-interactive-test/modules/currency/example2/story.check deleted file mode 100644 index d62051f..0000000 --- a/bash-snippets-interactive-test/modules/currency/example2/story.check +++ /dev/null @@ -1,15 +0,0 @@ -begin: -What is the base currency: USD -What currency to exchange to: RUB -What is the amount being exchanged: 100 -end: - -begin: -========================= -| USD to RUB -regexp: ^\|\s+Rate:\s+\d+\.\d+\s*$ -| USD: 100 -regexp: ^\|\s+RUB:\s+\d+\.\d+\s*$ -========================= -end: - diff --git a/bash-snippets-interactive-test/modules/currency/example2/story.pl b/bash-snippets-interactive-test/modules/currency/example2/story.pl deleted file mode 100644 index e1179d7..0000000 --- a/bash-snippets-interactive-test/modules/currency/example2/story.pl +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env perl - -use Expect; - -use strict; - -my $tools_dir = config()->{dir}; - - - -my $exp = Expect->new; - -$exp->spawn("$tools_dir/currency/currency") - or die "Cannot spawn command: bash $tools_dir/currency/currency: $!\n"; - - -$exp->expect(120, - [ - qr/What is the base currency/ => sub { - my $exp = shift; - $exp->send("USD\n"); - exp_continue; - } - ], - [ - qr/What currency to exchange to/ => sub { - my $exp = shift; - $exp->send("RUB\n"); - exp_continue; - } - ], - [ - qr/What is the amount being exchanged/ => sub { - my $exp = shift; - $exp->send("100\n"); - exp_continue; - } - ], - ); - - -$exp->hard_close(); - - diff --git a/bash-snippets-interactive-test/report.png b/bash-snippets-interactive-test/report.png deleted file mode 100644 index 7eb91b0..0000000 Binary files a/bash-snippets-interactive-test/report.png and /dev/null differ diff --git a/bash-snippets-interactive-test/sparrow.json b/bash-snippets-interactive-test/sparrow.json deleted file mode 100644 index 9979680..0000000 --- a/bash-snippets-interactive-test/sparrow.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name" : "bash-snippets-interactive-test", - "description" : "Run tests against BashSnippets tools with interactive prompt", - "version" : "0.0.2", - "url" : "https://github.com/alexanderepstein/Bash-Snippets", - "category": "utilities", - "sparrow_version" : "0.2.48", - "doc" : "README.md" -} diff --git a/bash-snippets-interactive-test/suite.yaml b/bash-snippets-interactive-test/suite.yaml deleted file mode 100644 index 7e01964..0000000 --- a/bash-snippets-interactive-test/suite.yaml +++ /dev/null @@ -1 +0,0 @@ -dir: "../"