Skip to content

Commit

Permalink
ci for create account: move to separate shell scriprt
Browse files Browse the repository at this point in the history
  • Loading branch information
janedegtiareva committed May 23, 2019
1 parent 4ac895d commit 19155b8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "./test/new_project.sh; ./test/create_account.sh"
},
"repository": {
"type": "git",
Expand Down
6 changes: 6 additions & 0 deletions test/create_account.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
cd tmp-project
timestamp=$(date +%s)
testaccount=testaccount$timestamp
../bin/near create_account --account_id $testaccount

5 changes: 1 addition & 4 deletions test/new_project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@ npm install
npm uninstall near-shell
npm install ../
NODE_ENV=development npm run test
timestamp=$(date +%s)
testaccount=testaccount$timestamp
../bin/near create_account --account_id $testaccount
#//../bin/near deploy --contract_name $testaccount


0 comments on commit 19155b8

Please sign in to comment.