Skip to content

Commit

Permalink
add panda python package test and fix safety test
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm committed Apr 7, 2018
1 parent 021dde7 commit 7a1f319
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
25 changes: 22 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
version: 2
jobs:
build:
safety:
machine:
docker_layer_caching: true
steps:
- checkout
- run:
name: Build image
command: "docker build -t panda -f tests/safety/Dockerfile ."
command: "docker build -t panda_safety -f tests/safety/Dockerfile ."
- run:
name: Run safety test
command: |
docker run panda /bin/bash -c "cd /panda/tests/safety; ./test.sh"
docker run panda_safety /bin/bash -c "cd /panda/tests/safety; ./test.sh"
build:
machine:
docker_layer_caching: true
steps:
- checkout
- run:
name: Build image
command: "docker build -t panda_build -f tests/build/Dockerfile ."
- run:
name: Test python package installer
command: |
docker run panda_build /bin/bash -c "cd /panda; python setup.py install"
workflows:
version: 2
main:
jobs:
- safety
- build
8 changes: 8 additions & 0 deletions tests/build/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM ubuntu:16.04

RUN apt-get update && apt-get install -y gcc-arm-none-eabi libnewlib-arm-none-eabi gperf texinfo help2man python python-pip
RUN pip install setuptools

COPY . /panda

WORKDIR /panda
3 changes: 1 addition & 2 deletions tests/safety/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ FROM ubuntu:16.04

RUN apt-get update && apt-get install -y clang make python python-pip
COPY tests/safety/requirements.txt /panda/tests/safety/requirements.txt
RUN pip install -r /panda/safety/tests/requirements.txt
RUN pip install -r /panda/tests/safety/requirements.txt
COPY . /panda

0 comments on commit 7a1f319

Please sign in to comment.