Add drone.yml and fix tests to be compatable with docker pipeline (#1)
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing

init drone file
allow testing on custom host/port

Co-authored-by: James <inbox.dev@jhodges.co.uk>
Reviewed-on: #1
Co-Authored-By: James <jhodges@noreply@git.jhodges.co.uk>
Co-Committed-By: James <jhodges@noreply@git.jhodges.co.uk>
This commit is contained in:
2020-09-30 15:13:56 +01:00
parent dbe1481e5c
commit 069e951f3d
4 changed files with 126 additions and 94 deletions

View File

@@ -1,13 +0,0 @@
#!/usr/bin/env bash
npm install
if [ -z ${TRAVIS_JOB_ID} ]; then
# not running under travis, stay in foreground until stopped
node server.js
else
cd tests/server
# running under travis, daemonize
(node server.js &) || /bin/true
fi