Try always using DISPLAY=unix:99:0 on Linux CI
This commit is contained in:
parent
23b35af7f2
commit
a0fd37c8a3
2 changed files with 1 additions and 3 deletions
|
@ -61,9 +61,6 @@ def main():
|
|||
execute(['sudo', 'apt-get', 'install'] + deps)
|
||||
|
||||
execute(['sh', '-e', '/etc/init.d/xvfb', 'start'])
|
||||
|
||||
|
||||
if PLATFORM == 'linux':
|
||||
os.environ['DISPLAY'] = ':99.0'
|
||||
|
||||
# CI's npm is not reliable.
|
||||
|
|
|
@ -36,6 +36,7 @@ docker run \
|
|||
--env ELECTRON_S3_BUCKET="$BUILD_ELECTRON_ELECTRON_S3_BUCKET" \
|
||||
--env ELECTRON_S3_ACCESS_KEY="$BUILD_ELECTRON_ELECTRON_S3_ACCESS_KEY" \
|
||||
--env ELECTRON_S3_SECRET_KEY="$BUILD_ELECTRON_ELECTRON_S3_SECRET_KEY" \
|
||||
--env DISPLAY="unix:99:0" \
|
||||
--user "$UID" \
|
||||
--volume "$PWD":/workspace/electron \
|
||||
--volume /tmp/.X11-unix:/tmp/.X11-unix \
|
||||
|
|
Loading…
Reference in a new issue