Skip to content

Commit

Permalink
Build Chrome extension
Browse files Browse the repository at this point in the history
This adds a build pipeline step to compile the Chrome extension, using a
base URL and assets URL/path provided by environment variables. The
resulting "chrome.zip" can be archived as a build artifact.
  • Loading branch information
nickstenning committed Apr 1, 2015
1 parent e3c8466 commit 5f862d9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .buildkite/bin/buildext-chrome
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/sh
#
# Build the Chrome extension. The following environment variables must be set
# for the build.
#
# HYPOTHESIS_EXT_CHROME_BASE: extension base URL
# HYPOTHESIS_EXT_CHROME_ASSETS: extension assets path/URL
#

set -eu

export DEBIAN_FRONTEND=noninteractive

echo "--- Installing zip"
apt-get update
apt-get install -y zip

echo "--- Installing h"
pip install -e .

echo "+++ Building Chrome extension"
hypothesis-buildext conf/production.ini chrome \
--base "$HYPOTHESIS_EXT_CHROME_BASE" \
--assets "$HYPOTHESIS_EXT_CHROME_ASSETS"
zip -r build/chrome.zip build/chrome

0 comments on commit 5f862d9

Please sign in to comment.