# Travis CI integration for p4c using Docker.

services:
  - docker

cache: ccache

env:
  - CTEST_PARALLEL_LEVEL=4

install:
  - tools/start_ccache
  - docker build --network ccache_network -t p4c --build-arg IMAGE_TYPE=test .

script:
  - docker run -w /p4c/build -e CTEST_PARALLEL_LEVEL p4c ctest --output-on-failure --schedule-random

# Travis CI integration for p4c using Docker.

branches:
  only:
  - master
  - stable

services:
  - docker

cache: ccache

env:
  - CTEST_PARALLEL_LEVEL=4

install:
  - tools/start_ccache
  - docker build --network ccache_network -t p4c --build-arg IMAGE_TYPE=test .

script:
  - docker run -w /p4c/build -e CTEST_PARALLEL_LEVEL p4c ctest --output-on-failure --schedule-random

Enable building of only master and stable branches on Travis
Enable building of only master and stable branches on Travis
