Run the server in before_script

This commit is contained in:
Trevor Blades
2018-11-01 13:41:02 -07:00
parent a388da0600
commit 1e77d13e98

View File

@@ -3,6 +3,5 @@ node_js: 8
cache:
directories:
- node_modules
after_success:
- node -r esm index.js
- npx apollo schema:check --endpoint=http://localhost:$PORT
before_script: node -r esm index.js &
after_success: npx apollo schema:check --endpoint=http://localhost:$PORT