Make it run in CI
Created by: pimpin
Hi, I try to make my dredd cover running in CI but I fail... Please could you consider like in the node demo:
-
adding a circle conf, -
adding working script.
I've tried the following conf and script but it fail after launching rails server.
machine:
node:
version: v0.10.22
post:
- npm install -g dredd
test:
pre:
- script/api-test
#!/bin/sh
bundle install
bundle exec rails s -d
sleep 45
PID=$!
dredd apiary.apib http://localhost:3000/
RESULT=$?
kill -9 $PID
exit $RESULT
here is the end of return
info: Beginning Dredd testing...
events.js:72
throw er; // Unhandled 'error' event
^
Error: socket hang up
at createHangUpError (http.js:1472:15)
at Socket.socketOnEnd [as onend] (http.js:1568:23)
at Socket.g (events.js:175:14)
at Socket.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:920:16
at process._tickCallback (node.js:415:13)
script/api-test: 8: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
script/api-test returned exit code 8