Skip to content

Commit

Permalink
TravisCI: speed up Firefox download via aria2
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Nov 22, 2015
1 parent 1867759 commit ed0af6f
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sudo: false
addons:
apt:
packages:
- python-pip
- aria2
env:
global:
- DISPLAY=':99.0'
Expand All @@ -27,16 +27,9 @@ before_script:
- npm install grunt-cli -g
- npm install grunt-run
- npm install grunt-contrib-jshint
- pip install --user 'requests[security]'
- pip install --user 'mozdownload'
- rm -rf $HOME/cache/*latest*
- ls -R $HOME/cache
- mkdir -p $HOME/cache/$FIREFOX_RELEASE
- echo $FIREFOX_RELEASE | grep -v latest || wget -O $HOME/cache/$FIREFOX_RELEASE/firefox-$FIREFOX_RELEASE.tar.bz2 "https://download.mozilla.org/?product=firefox-$FIREFOX_RELEASE&os=linux64&lang=en-US"
- test -f $HOME/cache/$FIREFOX_RELEASE/*firefox*.tar.bz2 || $HOME/.local/bin/mozdownload -t release -v $FIREFOX_RELEASE -d $HOME/cache/$FIREFOX_RELEASE/
- tar xf $HOME/cache/$FIREFOX_RELEASE/*firefox*.tar.bz2
- aria2c -o firefox-$FIREFOX_RELEASE.tar.bz2 "https://download.mozilla.org/?product=firefox-$FIREFOX_RELEASE&os=linux64&lang=en-US"
- tar xvf firefox-$FIREFOX_RELEASE.tar.bz2
- sh -e /etc/init.d/xvfb start
- ls -R $HOME
script:
- bash test/workaround_for_bug_1103385.sh
- grunt jshint

0 comments on commit ed0af6f

Please sign in to comment.