From ed87ba72282a8e5c2cd3f5631748726c930809bd Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 21 Oct 2016 11:55:32 +0200 Subject: emacs: trying to test it with travis MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Files and idea taken from https://github.com/purcell/emacs.d. I've also added the bin/test directory into it. Signed-off-by: Miquel Sabaté Solà --- bin/test/test.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/test') diff --git a/bin/test/test.sh b/bin/test/test.sh index 58a8530..f9f23a8 100755 --- a/bin/test/test.sh +++ b/bin/test/test.sh @@ -15,10 +15,12 @@ # along with this program. If not, see . # Back up the current files and get paths straight. +set -e dir="$( cd "$( dirname "$0" )" && pwd )" -license=$(realpath "$dir/../license") +license=$(readlink -f "$dir/../license") cp "$dir/main.cpp" "$dir/main.cpp.old" cp "$dir/README.md" "$dir/README.md.old" +set +e status=0 # license main.cpp @@ -46,4 +48,3 @@ else echo "OK" fi exit $status - -- cgit v1.2.3