-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add panda python package test and fix safety test
- Loading branch information
Showing
3 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters