From 64f644b699c3bf627b2788ddbcc817c8ef9c0c31 Mon Sep 17 00:00:00 2001 From: Zankevich Date: Mon, 4 Jul 2016 23:24:45 +0100 Subject: [PATCH 1/3] Added package config --- package.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 6bcff0ce..563e7435 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,7 @@ { "name": "bats", - "version": "v0.4.0", - "description": "Bash Automated Testing System", - "install": "./install.sh ${PREFIX:-/usr/local}", - "scripts": [ "libexec/bats", "libexec/bats-exec-suite", "libexec/bats-exec-test", "libexec/bats-format-tap-stream", "libexec/bats-preprocess", "bin/bats" ] + "version": "1.0", + "description": "Bats is a TAP-compliant testing framework for Bash. It provides a simple way to verify that the UNIX programs you write behave as expected", + "install": "./install.sh", + "global": "true" } - From 4a2156d0f827d7c5635fab59db5cb83729265105 Mon Sep 17 00:00:00 2001 From: Zankevich Date: Mon, 4 Jul 2016 23:26:41 +0100 Subject: [PATCH 2/3] Fixed bpkg package --- .gitignore | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..3f9cfafd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +deps diff --git a/package.json b/package.json index 563e7435..f1072491 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,6 @@ "name": "bats", "version": "1.0", "description": "Bats is a TAP-compliant testing framework for Bash. It provides a simple way to verify that the UNIX programs you write behave as expected", - "install": "./install.sh", + "install": "./install.sh /usr/local", "global": "true" } From 15b3ea4442a72a6d162575ac7e20f8bbaa153af6 Mon Sep 17 00:00:00 2001 From: Zankevich Date: Mon, 4 Jul 2016 23:36:16 +0100 Subject: [PATCH 3/3] Added installation instructions to readme --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 235bf1ee..30b12039 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,12 @@ Bash's `errexit` (`set -e`) option when running test cases. If every command in the test case exits with a `0` status code (success), the test passes. In this way, each line is an assertion of truth. +## Installation + +You can install this globally with bpkg. + + curl -Lo- http://get.bpkg.io | sudo bash + sudo bpkg install gzankevich/bats ## Running tests