Commit 37c33e23 authored by brizental's avatar brizental
Browse files

fixup! Add CI for Tor Browser

Bug 454036: Increase permissions in tor-browser folder to allow building
parent ab9812ee
Loading
Loading
Loading
Loading
Loading
+5 −0
Changes for .gitlab/ci/containers/base/Containerfile: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -18,8 +18,12 @@ RUN apt-get update && apt-get install -y \
RUN git clone --single-branch --depth 1 https://gitlab.torproject.org/tpo/applications/tor-browser.git

# Bootstrap will download and install all dependencies required for building / linting / etc.
#
# Note: mozcheck is usually built at lint time and not fetched at bootstrap time.
# We need to do it manually so it's available come lint time.
RUN cd tor-browser && \
    yes | MOZBUILD_STATE_PATH=/var/tmp/mozbuild ./mach bootstrap --application-choice "$APPLICATION_CHOICE" && \
    ./mach artifact toolchain --from-build toolchain-linux64-mozcheck && mv mozcheck /var/tmp/mozbuild && \
    cd ..

RUN rm -rf tor-browser && \
@@ -40,6 +44,7 @@ WORKDIR /home/gitlab-runner
# Install Rust for the gitlab-runner user.
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/var/tmp/mozbuild/clang/bin:/home/gitlab-runner/.cargo/bin:$PATH"
ENV MOZ_FETCHES_DIR="/var/tmp/mozbuild"
RUN echo "$APPLICATION_CHOICE" | grep -qi android && \
    rustup target add armv7-linux-androideabi \
        aarch64-linux-android \