Skip to content

Commit

Permalink
add ci files
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm committed Apr 7, 2018
1 parent 6a3307c commit ce0545f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
jobs:
build:
machine:
docker_layer_caching: true
steps:
- checkout
- run:
name: Build image
command: "docker build -t panda -f tests/Dockerfile ."
- run:
name: Run safety test
command: |
docker run panda /bin/bash -c "cd /panda/tests/safety; ./test.sh"
7 changes: 7 additions & 0 deletions tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ubuntu:16.04

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

2 changes: 2 additions & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cffi==1.11.4
numpy==1.14.1

0 comments on commit ce0545f

Please sign in to comment.