-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
33 lines (25 loc) · 940 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Travis CI integration for p4c using Docker.
branches:
only:
- master
- stable
os:
- linux
- osx
services:
- docker
cache:
directories:
- $HOME/.ccache
env:
- CTEST_PARALLEL_LEVEL=4
before_install:
- tools/install_os_deps.sh
- if [[ $TRAVIS_OS_NAME == 'osx' ]] ; then export PATH="/usr/local/opt/bison/bin:$PATH" ; fi
install:
- if [[ $TRAVIS_OS_NAME == 'linux' ]] ; then tools/start_ccache; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]] ; then docker build --network ccache_network -t p4c --build-arg IMAGE_TYPE=test . ; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]] ; then ./bootstrap.sh -DCMAKE_BUILD_TYPE=RELEASE && cd build && make -j 2 ; fi
script:
- if [[ $TRAVIS_OS_NAME == 'linux' ]] ; then docker run -w /p4c/build -e CTEST_PARALLEL_LEVEL p4c ctest --output-on-failure --schedule-random ; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]] ; then ctest --output-on-failure -j 2 --schedule-random -LE "ebpf$" ; fi