Merge pull request #191 from atom/win-ci

Try fix Windows CI
This commit is contained in:
Cheng Zhao 2014-03-03 12:47:03 +00:00
commit 59a2430f1d
2 changed files with 9 additions and 5 deletions

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python
import errno
import glob
import os
import subprocess
@ -20,11 +21,14 @@ def main():
glob.glob('common/api/lib/*.coffee') + \
glob.glob('browser/atom/*.coffee')
if sys.platform in ['win32', 'cygwin']:
subprocess.check_call(['node', coffeelint] + settings + files,
executable='C:/Program Files/nodejs/node.exe')
else:
try:
subprocess.check_call(['node', coffeelint] + settings + files)
except OSError as e:
if e.errno == errno.ENOENT and sys.platform in ['win32', 'cygwin']:
subprocess.check_call(['node', coffeelint] + settings + files,
executable='C:/Program Files/nodejs/node.exe')
else:
raise
if __name__ == '__main__':

2
vendor/apm vendored

@ -1 +1 @@
Subproject commit a9e5498a838bf228fca53c32f66e2e6d5adcf783
Subproject commit 90cd546860e9782ac8d0d5f7a35ab49d5d105a4e