mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 04:13:54 +08:00
* prepare a test for valgrind by fixing linter issues * something went wrong * Try update cereal * Not working, fixing replay_learning.py * Testing * Testing * Working now * More logs, a bit of cleaning, still no idea how this works * Ok got 10% cleaning done * trying some stackOverflow code * Lots of cleaning * wip * Delete valgrind_testing.py * Delete replay_learning.py * Add to CI, cannot fail though * Add to CI, cannot fail though * Now the unit test should fail * Dump valgrind output in case of a failure * fix subrepos * fix subs * hopefully fixes every issue that we have * wait for message confirmation * Revert "wait for message confirmation" This reverts commit ad7ba280ec6536015ac1a442c9732bfe42fd5664. * fix local issues * Revert "fix local issues" This reverts commit 4498df21df471fa6e9360d50407eaefdf24ae69f. * attempt 3 to fix things * untested function extraction * refactor * add valgrind task * add delay and BASEDIR * Make test not fail, it is not designed for that * fix subrepositories * fix tests * Real fix now :) * scons * ... stupid CI * fix valgrind CI * Update test.yaml * Update test.yaml * Update test.yaml * add valgrind logs as file * remove delays * kill process more reliably * rename action * small cleanup * fix casting to int in case of large leaks Co-authored-by: Willem Melching <willem.melching@gmail.com>
64 lines
1.4 KiB
Docker
64 lines
1.4 KiB
Docker
FROM ubuntu:16.04
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
autoconf \
|
|
build-essential \
|
|
bzip2 \
|
|
capnproto \
|
|
libcapnp-dev \
|
|
clang \
|
|
cmake \
|
|
cppcheck \
|
|
curl \
|
|
ffmpeg \
|
|
git \
|
|
iputils-ping \
|
|
libarchive-dev \
|
|
libbz2-dev \
|
|
libcurl4-openssl-dev \
|
|
libeigen3-dev \
|
|
libffi-dev \
|
|
libglew-dev \
|
|
libgles2-mesa-dev \
|
|
libglib2.0-0 \
|
|
liblzma-dev \
|
|
libomp-dev \
|
|
libopencv-dev \
|
|
libssl-dev \
|
|
libsqlite3-dev \
|
|
libsystemd-dev \
|
|
libusb-1.0-0-dev \
|
|
libczmq-dev \
|
|
libzmq3-dev \
|
|
locales \
|
|
ocl-icd-libopencl1 \
|
|
ocl-icd-opencl-dev \
|
|
opencl-headers \
|
|
python-dev \
|
|
python-pip \
|
|
qt5-default \
|
|
qtmultimedia5-dev \
|
|
sudo \
|
|
valgrind \
|
|
wget \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
|
|
ENV LANG en_US.UTF-8
|
|
ENV LANGUAGE en_US:en
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
|
|
ENV PATH="/root/.pyenv/bin:/root/.pyenv/shims:${PATH}"
|
|
|
|
COPY Pipfile Pipfile.lock /tmp/
|
|
RUN pyenv install 3.8.2 && \
|
|
pyenv global 3.8.2 && \
|
|
pyenv rehash && \
|
|
pip install --no-cache-dir --upgrade pip==20.1.1 && \
|
|
pip install --no-cache-dir pipenv==2020.8.13 && \
|
|
cd /tmp && \
|
|
pipenv install --system --deploy --dev --clear && \
|
|
pip uninstall -y pipenv
|