Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 2ef3ffe

Browse files
authored
Merge pull request #37 from startupturbo/ci_status
Add CircleCI status badge
2 parents 45c456a + 31ae710 commit 2ef3ffe

9 files changed

+11
-1
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ jobs:
2424
name: Tests
2525
command: |
2626
errcount=0
27+
printTail=" "
2728
for f in tests/*.sh; do
28-
printf "$f\t\t"
29+
printf "$f${printTail:0:-${#f}}"
2930
bash "$f" -H
3031
status=$?
3132
if [ $status -ne 0 ]; then

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![CircleCI](https://circleci.com/gh/startupturbo/nancy.svg?style=svg)](https://circleci.com/gh/startupturbo/nancy)
2+
13
Description
24
===
35
Nancy helps to conduct automated database experiments.

tests/nancy_cli_run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ if [[ $output =~ "ERROR: AWS keys not given" ]]; then
88
echo -e "\e[36mOK\e[39m"
99
else
1010
>&2 echo -e "\e[31mFAILED\e[39m"
11+
>&2 echo -e "Output: $output"
1112
exit 1
1213
fi

tests/nancy_cli_run_no_optons.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ if [[ $output =~ "ERROR: AWS keys not given" ]]; then
66
echo -e "\e[36mOK\e[39m"
77
else
88
>&2 echo -e "\e[31mFAILED\e[39m"
9+
>&2 echo -e "Output: $output"
910
exit 1
1011
fi

tests/nancy_cli_unknown.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ if [[ $output =~ "ERROR: Unknown command" ]]; then
66
echo -e "\e[36mOK\e[39m"
77
else
88
>&2 echo -e "\e[31mFAILED\e[39m"
9+
>&2 echo -e "Output: $output"
910
exit 1
1011
fi

tests/nancy_run_localhost_simple_dump.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ if [[ $output =~ "Queries duration:" ]]; then
1818
echo -e "\e[36mOK\e[39m"
1919
else
2020
>&2 echo -e "\e[31mFAILED\e[39m"
21+
>&2 echo -e "Output: $output"
2122
exit 1
2223
fi

tests/nancy_run_localhost_simple_dump_with_index.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ if [[ $output =~ "Queries duration:" ]]; then
2020
echo -e "\e[36mOK\e[39m"
2121
else
2222
>&2 echo -e "\e[31mFAILED\e[39m"
23+
>&2 echo -e "Output: $output"
2324
exit 1
2425
fi

tests/nancy_run_no_options.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ if [[ $output =~ "ERROR: AWS keys not given" ]]; then
66
echo -e "\e[36mOK\e[39m"
77
else
88
>&2 echo -e "\e[31mFAILED\e[39m"
9+
>&2 echo -e "Output: $output"
910
exit 1
1011
fi

tests/nancy_run_options_no_instance_type.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ if [[ $output =~ "ERROR: AWS EC2 Instance type not given." ]]; then
88
exit 0
99
else
1010
>&2 echo -e "\e[31mFAILED\e[39m"
11+
>&2 echo -e "Output: $output"
1112
exit 1
1213
fi

0 commit comments

Comments
 (0)