Skip to content

Commit

Permalink
Run P4C tests that require the behavioral model in Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
sethfowler committed Jan 24, 2017
1 parent dec3984 commit 8aa6075
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM ubuntu:14.04
MAINTAINER Seth Fowler <seth.fowler@barefootnetworks.com>

# Install dependencies.
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get install -y \
automake \
Expand All @@ -19,6 +20,19 @@ RUN apt-get update && \
python-scapy \
tcpdump

# Clone and build behavioral-model, which is needed by some tests.
ENV BEHAVIORAL_MODEL_REPO https://github.com/sethfowler/behavioral-model.git
ENV BEHAVIORAL_MODEL_TAG 4f85ec95da24
RUN git clone --recursive $BEHAVIORAL_MODEL_REPO /behavioral-model && \
cd /behavioral-model && \
git reset --hard $BEHAVIORAL_MODEL_TAG && \
./install_deps.sh && \
./autogen.sh && \
./configure && \
make -j8 && \
make install && \
ldconfig

# Copy entire repository.
COPY . /p4c/
WORKDIR /p4c/
Expand Down

0 comments on commit 8aa6075

Please sign in to comment.