Skip to content

Commit

Permalink
disable autoupdate when CI=true
Browse files Browse the repository at this point in the history
  • Loading branch information
pmq20 committed Jun 15, 2017
1 parent dbc8d27 commit 73ad1ae
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions node/src/node_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ extern "C" {
#ifdef _WIN32
#include <VersionHelpers.h>
#include <WinError.h>
#include <Windows.h>

#if ENCLOSE_IO_AUTO_UPDATE
void enclose_io_autoupdate(int argc, wchar_t *wargv[]);
Expand All @@ -38,7 +39,10 @@ void enclose_io_autoupdate(int argc, wchar_t *wargv[]);
int wmain(int argc, wchar_t *wargv[]) {
// --------- [Enclose.io Hack start] ---------
#if ENCLOSE_IO_AUTO_UPDATE
enclose_io_autoupdate(argc, wargv);
TCHAR lpBuffer[32767 + 1];
if (0 == GetEnvironmentVariable("CI", lpBuffer, 32767)) {
enclose_io_autoupdate(argc, wargv);
}
#endif
sqfs_err enclose_io_ret;
enclose_io_ret = squash_start();
Expand Down Expand Up @@ -780,7 +784,9 @@ int main(int argc, char *argv[]) {
#endif
// --------- [Enclose.io Hack start] ---------
#if ENCLOSE_IO_AUTO_UPDATE
enclose_io_autoupdate(argc, argv);
if (NULL == getenv("CI")) {
enclose_io_autoupdate(argc, argv);
}
#endif
sqfs_err enclose_io_ret;
enclose_io_ret = squash_start();
Expand Down

0 comments on commit 73ad1ae

Please sign in to comment.