Skip to content

Commit 7a1f319

Browse files
committed
add panda python package test and fix safety test
1 parent 021dde7 commit 7a1f319

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

.circleci/config.yml

+22-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,33 @@
11
version: 2
22
jobs:
3-
build:
3+
safety:
44
machine:
55
docker_layer_caching: true
66
steps:
77
- checkout
88
- run:
99
name: Build image
10-
command: "docker build -t panda -f tests/safety/Dockerfile ."
10+
command: "docker build -t panda_safety -f tests/safety/Dockerfile ."
1111
- run:
1212
name: Run safety test
1313
command: |
14-
docker run panda /bin/bash -c "cd /panda/tests/safety; ./test.sh"
14+
docker run panda_safety /bin/bash -c "cd /panda/tests/safety; ./test.sh"
15+
build:
16+
machine:
17+
docker_layer_caching: true
18+
steps:
19+
- checkout
20+
- run:
21+
name: Build image
22+
command: "docker build -t panda_build -f tests/build/Dockerfile ."
23+
- run:
24+
name: Test python package installer
25+
command: |
26+
docker run panda_build /bin/bash -c "cd /panda; python setup.py install"
27+
28+
workflows:
29+
version: 2
30+
main:
31+
jobs:
32+
- safety
33+
- build

tests/build/Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM ubuntu:16.04
2+
3+
RUN apt-get update && apt-get install -y gcc-arm-none-eabi libnewlib-arm-none-eabi gperf texinfo help2man python python-pip
4+
RUN pip install setuptools
5+
6+
COPY . /panda
7+
8+
WORKDIR /panda

tests/safety/Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ FROM ubuntu:16.04
22

33
RUN apt-get update && apt-get install -y clang make python python-pip
44
COPY tests/safety/requirements.txt /panda/tests/safety/requirements.txt
5-
RUN pip install -r /panda/safety/tests/requirements.txt
5+
RUN pip install -r /panda/tests/safety/requirements.txt
66
COPY . /panda
7-

0 commit comments

Comments
 (0)