Skip to content

Commit 3d1560d

Browse files
authored
bot: Use mercurial 5.1 (#115)
1 parent f627d54 commit 3d1560d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

bot/ci/bootstrap.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
#!/bin/bash -ex
22
GRCOV_VERSION="v0.5.3"
3-
MERCURIAL_VERSION="4.8"
3+
MERCURIAL_VERSION="5.1"
44

55
apt-get update
6-
apt-get install --no-install-recommends -y mercurial=4.8.* curl lcov bzip2
6+
apt-get install --no-install-recommends -y curl lcov bzip2 python2-minimal python-bz2file python-dev
7+
8+
# Setup mercurial from its own website, without install pip2 which has a lot of dependencies
9+
curl -L https://www.mercurial-scm.org/release/mercurial-$MERCURIAL_VERSION.tar.gz | tar -C /opt -xvz
10+
cd /opt/mercurial-$MERCURIAL_VERSION
11+
python2 setup.py install
712

813
# Setup grcov
914
curl -L https://github.com/mozilla/grcov/releases/download/$GRCOV_VERSION/grcov-linux-x86_64.tar.bz2 | tar -C /usr/bin -xjv

bot/tests/test__system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_mercurial():
1313

1414
# Check mercurial version
1515
output = run_check(["hg", "version", "-T", "{ver}"])
16-
assert output.decode("utf-8").startswith("4.8")
16+
assert output.decode("utf-8").startswith("5.1")
1717

1818
# Check needed extensions
1919
output = run_check(["hg", "version", "-T", "{extensions}"])

0 commit comments

Comments
 (0)