Skip to content

Commit

Permalink
Set up Travis releases.
Browse files Browse the repository at this point in the history
  • Loading branch information
fwalch committed Jan 14, 2015
1 parent c9322e4 commit 9e7909b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
sudo: false
env:
matrix:
- BROWSER=chromium EXT=zip
- BROWSER=firefox EXT=xpi
script: ./tools/make-${BROWSER}.sh all
deploy:
provider: releases
api_key:
secure: TODO: your key here!
file: dist/build/uBlock.${BROWSER}.${EXT}
skip_cleanup: true
on:
repo: gorhill/uBlock
tags: true
all_branches: true
7 changes: 7 additions & 0 deletions tools/make-chromium.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,11 @@ cp platform/chromium/*.js $DES/js/
cp platform/chromium/manifest.json $DES/
cp LICENSE.txt $DES/

if [ "$1" = all ]; then
echo "*** uBlock.chromium: Creating package..."
pushd $(dirname $DES/)
zip uBlock.chromium.zip -qr $(basename $DES/)/*
popd
fi

echo "*** uBlock.chromium: Package done."
11 changes: 5 additions & 6 deletions tools/make-firefox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
#
# This script assumes a linux environment

echo "*** uBlock_xpi: Copying files"
echo "*** uBlock.firefox: Copying files"

# use underscore instead of a dot!
DES=dist/build/uBlock_xpi
DES=dist/build/uBlock.firefox
rm -r $DES
mkdir -p $DES

Expand All @@ -25,15 +25,14 @@ cp platform/firefox/chrome.manifest $DES/
cp platform/firefox/install.rdf $DES/
cp LICENSE.txt $DES/

echo "*** uBlock_xpi: Generating meta..."
echo "*** uBlock.firefox: Generating meta..."
python tools/make-firefox-meta.py $DES/


if [ "$1" = all ]; then
echo "*** uBlock_xpi: Creating package..."
echo "*** uBlock.firefox: Creating package..."
pushd $DES/
zip ../uBlock.firefox.xpi -qr *
popd
fi

echo "*** uBlock_xpi: Package done."
echo "*** uBlock.firefox: Package done."

0 comments on commit 9e7909b

Please sign in to comment.