Instead, add env var for overriding user input

This commit is contained in:
Calvin Montgomery 2017-03-21 20:27:29 -07:00
parent 61f872bb84
commit 5e537fa8db
2 changed files with 6 additions and 2 deletions

View File

@ -8,8 +8,6 @@ addons:
- g++-4.8
env:
- CXX="g++-4.8"
before_script:
- npm run build-server
node_js:
- "7"
- "6"

View File

@ -1,5 +1,11 @@
#!/bin/sh
if test "$BUILD_OVERRIDE" = "Y"; then
echo "Running $npm_package_scripts_build_server"
$npm_package_scripts_build_server
exit $?
fi
echo "In order to run the server, the source files in src/ must be transpiled to lib/. This will overwrite any changes you have made to the files in lib/."
echo -n "Do you want to build now? [y/N]? "
read answer