Skip to content
Snippets Groups Projects
Commit 837a7921a209 authored by Anton Shestakov's avatar Anton Shestakov
Browse files

ci: install rust in ci-base

parent 4045e6ed573a
No related tags found
1 merge request!40ci: install rust in ci-base
Pipeline #7145 failed
......@@ -44,3 +44,21 @@
RUN echo "[trusted]\nusers=root\ngroups=root\n" > /etc/mercurial/hgrc.d/trust-root.rc
RUN useradd -U -ms /bin/bash --comment "User dedicated to running ci tests" ci-runner
USER ci-runner
# install rustfmt through rustup (irk)
RUN curl --proto -all,https --tlsv1.2 -sSf https://sh.rustup.rs -o /tmp/rustup.sh
# Only download the targetted Debian stable version
RUN sh /tmp/rustup.sh -y --default-toolchain 1.34.2
USER root
RUN ln -s /home/ci-runner/.cargo/bin/rustup /usr/local/bin/
RUN ln -s /home/ci-runner/.cargo/bin/cargo /usr/local/bin/
USER ci-runner
# Be extra sure
RUN rustup default 1.34.2
RUN rustup toolchain install nightly
RUN rustup component add rustfmt --toolchain nightly
USER root
......@@ -13,19 +13,3 @@
RUN npm install -g jshint
USER ci-runner
# install rustfmt through rustup (irk)
RUN curl --proto -all,https --tlsv1.2 -sSf https://sh.rustup.rs -o /tmp/rustup.sh
# Only download the targetted Debian stable version
RUN sh /tmp/rustup.sh -y --default-toolchain 1.34.2
USER root
RUN ln -s /home/ci-runner/.cargo/bin/rustup /usr/local/bin/
RUN ln -s /home/ci-runner/.cargo/bin/cargo /usr/local/bin/
USER ci-runner
# Be extra sure
RUN rustup default 1.34.2
RUN rustup toolchain install nightly
RUN rustup component add rustfmt --toolchain nightly
RUN cd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment