Permalink
Browse files

build_release: Add smoke test for OS X

This should prevent something like #1686 in the future.
  • Loading branch information...
The-Compiler committed Jul 26, 2016
1 parent 614794a commit fb20352e3fcfb88dbea8ae3a6121497fb73758d8
Showing with 12 additions and 0 deletions.
  1. +12 −0 scripts/dev/build_release.py
@@ -28,6 +28,7 @@
import subprocess
import argparse
import tarfile
import tempfile
import collections
sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir,
@@ -103,6 +104,17 @@ def build_osx():
for d in ['dist', 'build']:
shutil.rmtree(d)
utils.print_title("Running smoke test")
with tempfile.TemporaryDirectory() as tmpdir:
subprocess.check_call(['hdiutil', 'attach', 'qutebrowser.dmg',
'-mountpoint', tmpdir])
try:
binary = os.path.join(tmpdir, 'qutebrowser.app', 'Contents',
'MacOS', 'qutebrowser')
subprocess.check_call([binary])
finally:
subprocess.check_call(['hdiutil', 'detach', tmpdir])
def build_windows():
"""Build windows executables/setups."""

0 comments on commit fb20352

Please sign in to comment.