testing: install git-cinnabar in testing environment; r=smacleod draft
authorGregory Szorc <gps@mozilla.com>
Tue, 19 Jan 2016 13:52:57 -0800
changeset 7031 b7d67d015789389ae530619de60acc450009e474
parent 7030 82c4760e61a825796657af0af9e93d9f2c9174de
child 7032 88d7765ded31ee03578548e2c554f5d1a9f0d604
push id583
push usergszorc@mozilla.com
push dateTue, 02 Feb 2016 00:32:12 +0000
reviewerssmacleod
testing: install git-cinnabar in testing environment; r=smacleod We'll need git-cinnabar present to test Git push to MozReview. MozReview-Commit-ID: 7fGld1hm3bY
create-test-environment
--- a/create-test-environment
+++ b/create-test-environment
@@ -108,16 +108,23 @@ rm -rf $mercurials/@
 cd venv/hg
 hg up @
 make install-bin PREFIX=$mercurials/@
 hg --config extensions.purge= purge --all
 cd ../..
 unset HGRCPATH
 echo finished installing Mercurials
 
+if [ ! -d venv/git-cinnabar ]; then
+  echo "Cloning git-cinnabar"
+  git clone --branch release https://github.com/glandium/git-cinnabar.git venv/git-cinnabar
+fi
+
+git -C venv/git-cinnabar pull
+
 echo ""
 echo "Building Docker images."
 echo "This could take a while and may consume a lot of internet bandwidth."
 echo "If you don't want Docker images, it is safe to hit CTRL+c to abort this."
 
 ./d0cker build-all || {
   echo "You will not be able to run tests that require Docker.";
   echo "Please see https://docs.docker.com/installation/ for how to install Docker.";