Skip to content

Commit

Permalink
Also moved safety tests to python3
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiasini committed Sep 26, 2019
1 parent 6842b2d commit ed2ac87
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion tests/safety/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
FROM ubuntu:16.04

RUN apt-get update && apt-get install -y clang make python python-pip
RUN apt-get update && apt-get install -y clang make python python-pip git curl locales zlib1g-dev libffi-dev bzip2 libssl-dev libbz2-dev

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}"
RUN pyenv install 3.7.3
RUN pyenv global 3.7.3
RUN pyenv rehash

COPY tests/safety/requirements.txt /panda/tests/safety/requirements.txt
RUN pip install -r /panda/tests/safety/requirements.txt
COPY . /panda
2 changes: 1 addition & 1 deletion tests/safety/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cffi==1.11.4
numpy==1.14.1
numpy==1.14.5

0 comments on commit ed2ac87

Please sign in to comment.