From 1032ae5768000149bfa170672e862ac1a81bb6ec Mon Sep 17 00:00:00 2001 From: Vladimir Grichina Date: Fri, 7 Jun 2019 19:49:41 -0700 Subject: [PATCH] Launch tests from ./test/index.sh --- package.json | 2 +- test/create_account.sh | 1 - test/index.sh | 5 +++++ test/new_project.sh | 1 - 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100755 test/index.sh diff --git a/package.json b/package.json index 05827192..63c6ed0a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "build": "echo \"Error: not implemented\" && exit 1", "deploy": "echo \"Error: not implemented\" && exit 1", - "test": "./test/new_project.sh && ./test/create_account.sh" + "test": "./test/index.sh" }, "repository": { "type": "git", diff --git a/test/create_account.sh b/test/create_account.sh index 5f5f0873..6459c428 100755 --- a/test/create_account.sh +++ b/test/create_account.sh @@ -1,5 +1,4 @@ #!/bin/sh -env cd tmp-project timestamp=$(date +%s) testaccount=testaccount$timestamp diff --git a/test/index.sh b/test/index.sh new file mode 100755 index 00000000..ca047f03 --- /dev/null +++ b/test/index.sh @@ -0,0 +1,5 @@ +#!/bin/sh +set -ex +env +./test/new_project.sh +./test/create_account.sh diff --git a/test/new_project.sh b/test/new_project.sh index 7136e896..0072d839 100755 --- a/test/new_project.sh +++ b/test/new_project.sh @@ -1,6 +1,5 @@ #!/bin/sh set -ex -env cd test/