fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1FROM ubuntu:22.04 2 3ARG DEBIAN_FRONTEND=noninteractive 4RUN apt-get update && apt-get install -y --no-install-recommends \ 5 g++ \ 6 make \ 7 ninja-build \ 8 file \ 9 curl \ 10 ca-certificates \ 11 python2.7 \ 12 python3 \ 13 python3-pip \ 14 python3-pkg-resources \ 15 git \ 16 cmake \ 17 sudo \ 18 gdb \ 19 xz-utils \ 20 libssl-dev \ 21 pkg-config \ 22 mingw-w64 \ 23 && rm -rf /var/lib/apt/lists/* 24 25COPY scripts/sccache.sh /scripts/ 26RUN sh /scripts/sccache.sh 27 28COPY host-x86_64/mingw-check/reuse-requirements.txt /tmp/ 29RUN pip3 install --no-deps --no-cache-dir --require-hashes -r /tmp/reuse-requirements.txt \ 30 && pip3 install virtualenv 31 32COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/ 33COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/ 34 35# NOTE: intentionally uses python2 for x.py so we can test it still works. 36# validate-toolstate only runs in our CI, so it's ok for it to only support python3. 37ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \ 38 --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint