Skip to content

Commit

Permalink
Add separate config for CI and remote testing
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Jun 28, 2019
1 parent 24fc349 commit 77e2d8b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ run_tests:
- gcloud
script:
- npm install
- NODE_ENV=development npm run test
- NODE_ENV=ci npm run test
10 changes: 9 additions & 1 deletion blank_project/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@
nodeUrl: 'http://localhost:3030',
contractName: CONTRACT_NAME,
masterAccount: 'test.near',
}
};
case 'test-remote':
case 'ci':
return {
networkId: 'local',
nodeUrl: 'http://34.94.13.241:3030',
contractName: CONTRACT_NAME,
masterAccount: 'test.near',
};
default:
throw Error(`Unconfigured environment '${env}'. Can be configured in src/config.js.`);
}
Expand Down
6 changes: 0 additions & 6 deletions test/create_account.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
#!/bin/sh
set -ex
cd tmp-project
env
ls -la
ls -la src/
ls -la neardev/
cp -R neardev/local neardev/default
ls -la neardev/default/
timestamp=$(date +%s)
testaccount=testaccount$timestamp
../bin/near create_account $testaccount
Expand Down

0 comments on commit 77e2d8b

Please sign in to comment.