mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 06:03:33 -04:00
Merge pull request #147 from rom1504/improve_test
Add tests using the minecraft server jar to circle ci
This commit is contained in:
commit
2cf441ab83
13
circle.yml
13
circle.yml
@ -1,10 +1,11 @@
|
||||
machine:
|
||||
environment:
|
||||
MC_SERVER_JAR: /home/ubuntu/node-minecraft-protocol/minecraft-server/minecraft_server.1.8.3.jar
|
||||
node:
|
||||
version: 0.10.28
|
||||
java:
|
||||
version: openjdk7
|
||||
dependencies:
|
||||
override:
|
||||
- npm install --dev
|
||||
test:
|
||||
override:
|
||||
- node_modules/.bin/mocha -g "packets"
|
||||
- node_modules/.bin/mocha -g "mc-server"
|
||||
pre:
|
||||
- mkdir minecraft-server
|
||||
- wget https://s3.amazonaws.com/Minecraft.Download/versions/1.8.3/minecraft_server.1.8.3.jar -O $MC_SERVER_JAR
|
||||
|
@ -249,7 +249,10 @@ describe("client", function() {
|
||||
});
|
||||
batch.end(function(err) {
|
||||
if (err) return done(err);
|
||||
//console.log(MC_SERVER_JAR);
|
||||
if (!fs.existsSync(MC_SERVER_JAR)) {
|
||||
return done(new Error("The file "+MC_SERVER_JAR+" doesn't exist."));
|
||||
}
|
||||
|
||||
mcServer = spawn('java', [ '-Dlog4j.configurationFile=server/server_debug.xml', '-jar', MC_SERVER_JAR, 'nogui'], {
|
||||
stdio: 'pipe',
|
||||
cwd: MC_SERVER_PATH,
|
||||
|
Loading…
x
Reference in New Issue
Block a user