File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash -ex
2
2
GRCOV_VERSION=" v0.5.3"
3
3
MERCURIAL_VERSION=" 5.1"
4
+ VERSION_CONTROL_TOOLS_REV=" 709c897f2444"
4
5
5
6
apt-get update
6
- apt-get install --no-install-recommends -y curl lcov bzip2 python2-minimal python-bz2file python-dev
7
+ apt-get install --no-install-recommends -y gcc curl bzip2 python2-minimal python-bz2file python-dev
7
8
8
9
# Setup mercurial from its own website, without install pip2 which has a lot of dependencies
9
10
curl -L https://www.mercurial-scm.org/release/mercurial-$MERCURIAL_VERSION .tar.gz | tar -C /opt -xvz
@@ -15,9 +16,11 @@ curl -L https://github.com/mozilla/grcov/releases/download/$GRCOV_VERSION/grcov-
15
16
chmod +x /usr/bin/grcov
16
17
17
18
# Setup mercurial with needed extensions
18
- hg clone https://hg.mozilla.org/hgcustom/version-control-tools /src/version-control-tools/
19
+ hg clone -r $VERSION_CONTROL_TOOLS_REV https://hg.mozilla.org/hgcustom/version-control-tools /src/version-control-tools/
19
20
ln -s /src/bot/ci/hgrc $HOME /.hgrc
20
21
21
22
# Cleanup
23
+ apt-get purge -y gcc curl python-dev
22
24
apt-get autoremove -y
23
- rm -rf /src/version-control-tools/.hg
25
+ rm -rf /var/lib/apt/lists/*
26
+ rm -rf /src/version-control-tools/.hg /src/version-control-tools/ansible /src/version-control-tools/docs /src/version-control-tools/testing
Original file line number Diff line number Diff line change @@ -28,10 +28,3 @@ def test_grcov():
28
28
Test grcov is available on the system
29
29
"""
30
30
assert shutil .which ("grcov" ), "Missing grcov"
31
-
32
-
33
- def test_genhtml ():
34
- """
35
- Test genhtml is available on the system
36
- """
37
- assert shutil .which ("genhtml" ), "Missing genhtml"
You can’t perform that action at this time.
0 commit comments