-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into nightshade
- Loading branch information
Showing
8 changed files
with
2,514 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,10 @@ | ||
image: node:10 | ||
|
||
stages: | ||
- build | ||
- test | ||
|
||
cache: | ||
paths: | ||
- node_modules/ | ||
|
||
install_dependencies: | ||
stage: build | ||
script: | ||
- npm install | ||
artifacts: | ||
paths: | ||
- node_modules/ | ||
|
||
run_tests: | ||
stage: test | ||
script: | ||
- npm test | ||
- yarn | ||
- yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "@wasm/hello_world_ts", | ||
"name": "hello_world_ts", | ||
"description": "", | ||
"version": "0.0.1", | ||
"scripts": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 $testaccount | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
set -ex | ||
./test/new_project.sh | ||
./test/create_account.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,27 @@ | ||
#!/bin/sh | ||
set -ex | ||
|
||
RED='\033[0;31m' | ||
GREEN='\033[0;32m' | ||
|
||
# remove temporary blank project | ||
rm -rf test/tmp-project | ||
cd test/ | ||
rm -rf tmp-project | ||
|
||
# test generating new project in cwd | ||
mkdir tmp-project | ||
cd tmp-project | ||
../../bin/near new_project | ||
npm install | ||
npm uninstall near-shell | ||
npm install ../../ | ||
NODE_ENV=development npm run test | ||
../bin/near new_project | ||
yarn | ||
yarn remove near-shell | ||
yarn add ../ | ||
NODE_ENV=development yarn test | ||
cd .. | ||
rm -rf tmp-project | ||
|
||
# test generating new project in new dir | ||
../bin/near new_project 'tmp-project' | ||
./bin/near new_project 'tmp-project' | ||
cd tmp-project | ||
FILE=package.json | ||
if test -f "$FILE"; then | ||
echo "${GREEN}$FILE exists. Have a cookie!" | ||
echo "$FILE exists. Have a cookie!" | ||
else | ||
echo "${RED}ERROR: file not found." | ||
echo "ERROR: $FILE not found." | ||
exit 1 | ||
fi | ||
fi |
Oops, something went wrong.