mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Add option to automatically upgrade packages for CI server, etc.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
project_home="$(dirname "$PWD")"
|
||||
|
||||
export PATH="$HOME/narwhal/bin:$PATH"
|
||||
export CAPP_AUTO_UPGRADE="yes"
|
||||
|
||||
export CAPP_BUILD=$project_home/build_incremental
|
||||
time jake test
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ function ensurePackageUpToDate(packageName, requiredVersion, options)
|
||||
if (!options.noupdate)
|
||||
{
|
||||
print("Update? yes or no:");
|
||||
if (system.stdin.readLine() !== "yes\n")
|
||||
if (!SYSTEM.env["CAPP_AUTO_UPGRADE"] && system.stdin.readLine() !== "yes\n")
|
||||
{
|
||||
print("Jake aborted.");
|
||||
OS.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user