Skip to content

Commit

Permalink
feat: add test run command for future CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JiLiZART committed Aug 31, 2020
1 parent a14616e commit 461b8c9
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"start": "ts-node ./src/cli/host.ts --config=./config.json",
"debug": "node --inspect -r ts-node/register ./src/cli/host.ts --config=./config.json",
"dev": "env GHOST_DEBUG=hex,log ts-node ./src/cli/host.ts --config=./config.json",
"test-run": "env NODE_ENV=test ts-node ./src/cli/host.ts --config=./test_config.json",
"build": "tsc"
},
"repository": {
Expand Down
43 changes: 43 additions & 0 deletions test_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"bnet": [
{
"enabled": true,
"server": "server.pvpgn.pro",
"alias": "pvpgn.pro 1",
"username": "jilizart",
"password": "jilizart",
"firstchannel": "w3",
"custom": {
"war3version": "27",
"passwordhashyype": "pvpgn"
},
"localeid": 1033,
"war3exe": "./war3/1.27b/war3.exe",
"stormdll": "./war3/1.27b/Storm.dll",
"gamedll": "./war3/1.27b/game.dll",
"commandtrigger": "!",
"plugins": {
"chat": {
"consolePrint": true
}
}
}
],
"bot": {
"hostport": 6112,
"defaultmap": "map",
"mapcfgpath": "./maps",
"commandtrigger": "!",
"war3path": "./war3/1.27b/",
"war3version": "27",
"plugins": {
"chat": {
"consolePrint": true
}
}
},
"admingame": {
"create": true,
"port": 6112
}
}

0 comments on commit 461b8c9

Please sign in to comment.