Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. #!/bin/bash -eo pipefail
  2. npm test
  3.  
  4. > starter-kit@ test /home/circleci/project
  5. > npm run test_db && npm run test_rest
  6.  
  7.  
  8. > starter-kit@ test_db /home/circleci/project
  9. > ( set -a && . ./.env && set +a && docker run -i -t --rm --name pgtap --net ${COMPOSE_PROJECT_NAME}_default --link ${COMPOSE_PROJECT_NAME}_db_1:db -v $(pwd)/tests/db/:/test -e HOST=$DB_HOST -e DATABASE=$DB_NAME -e USER=$SUPER_USER -e PASSWORD=$SUPER_USER_PASSWORD lren/pgtap )
  10.  
  11. ^@^@Waiting for database...
  12. 2019/02/28 03:09:01 Waiting for: tcp://db:5432
  13. 2019/02/28 03:09:01 Connected to tcp://db:5432
  14.  
  15. Running tests: /test/*.sql
  16. /test/rls.sql ........ ok
  17. /test/simple.sql ..... ok
  18. /test/structure.sql .. ok
  19. All tests successful.
  20. Files=3, Tests=13, 0 wallclock secs ( 0.03 usr + 0.01 sys = 0.04 CPU)
  21. Result: PASS
  22.  
  23. > starter-kit@ test_rest /home/circleci/project
  24. > mocha --compilers js:babel-core/register ./tests/rest/
  25.  
  26. /home/circleci/project/tests/rest/auth.js:1
  27. (function (exports, require, module, __filename, __dirname) { import { rest_service, jwt, resetdb } from './common.js';
  28. ^^^^^^
  29. SyntaxError: Unexpected token import
  30. at exports.runInThisContext (vm.js:53:16)
  31. at Module._compile (module.js:511:25)
  32. at loader (/home/circleci/project/node_modules/babel-register/lib/node.js:144:5)
  33. at Object.require.extensions.(anonymous function) [as .js] (/home/circleci/project/node_modules/babel-register/lib/node.js:154:7)
  34. at Module.load (module.js:456:32)
  35. at tryModuleLoad (module.js:415:12)
  36. at Function.Module._load (module.js:407:3)
  37. at Module.require (module.js:466:17)
  38. at require (internal/module.js:20:19)
  39. at /home/circleci/project/node_modules/mocha/lib/mocha.js:231:27
  40. at Array.forEach (native)
  41. at Mocha.loadFiles (/home/circleci/project/node_modules/mocha/lib/mocha.js:228:14)
  42. at Mocha.run (/home/circleci/project/node_modules/mocha/lib/mocha.js:514:10)
  43. at Object.<anonymous> (/home/circleci/project/node_modules/mocha/bin/_mocha:480:18)
  44. at Module._compile (module.js:541:32)
  45. at Object.Module._extensions..js (module.js:550:10)
  46. at Module.load (module.js:456:32)
  47. at tryModuleLoad (module.js:415:12)
  48. at Function.Module._load (module.js:407:3)
  49. at Function.Module.runMain (module.js:575:10)
  50. at startup (node.js:160:18)
  51. at node.js:445:3
  52. npm ERR! code ELIFECYCLE
  53. npm ERR! errno 1
  54. npm ERR! starter-kit@ test_rest: `mocha --compilers js:babel-core/register ./tests/rest/`
  55. npm ERR! Exit status 1
  56. npm ERR!
  57. npm ERR! Failed at the starter-kit@ test_rest script.
  58. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  59.  
  60. npm ERR! A complete log of this run can be found in:
  61. npm ERR! /home/circleci/.npm/_logs/2019-02-28T03_09_02_947Z-debug.log
  62. npm ERR! Test failed. See above for more details.
  63. Exited with code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement