Browse Source

Add xvfb-init.sh to docker context

Kevin Sawicki 7 years ago
parent
commit
f1036f7305
2 changed files with 4 additions and 3 deletions
  1. 1 0
      .dockerignore
  2. 3 3
      script/cibuild

+ 1 - 0
.dockerignore

@@ -1 +1,2 @@
 *
+!tools/xvfb-init.sh

+ 3 - 3
script/cibuild

@@ -60,9 +60,9 @@ def main():
       deps += LINUX_DEPS_NO_ARM
     execute(['sudo', 'apt-get', 'install'] + deps)
 
- if PLATFORM == 'linux':
-  os.environ['DISPLAY'] = ':99.0'
-  execute(['sh', '-e', '/etc/init.d/xvfb', 'start'])
+  if PLATFORM == 'linux':
+    os.environ['DISPLAY'] = ':99.0'
+    execute(['sh', '-e', '/etc/init.d/xvfb', 'start'])
 
   # CI's npm is not reliable.
   npm = 'npm.cmd' if PLATFORM == 'win32' else 'npm'