diffblue-cbmc/buildspec-linux-clang-3.8.yml

29 lines
899 B
YAML

version: 0.2
env:
variables:
# CodeBuild console doesn't display color codes correctly
TESTPL_COLOR_OUTPUT: 0
phases:
install:
commands:
- sed -i 's#/archive.ubuntu.com#/us-east-1.ec2.archive.ubuntu.com#g' /etc/apt/sources.list
- apt-get update -y
- apt-get install -y clang-3.8 flex bison make git libwww-perl patch ccache libc6-dev-i386 jq openjdk-8-jdk maven
build:
commands:
- echo Build started on `date`
- make -C src minisat2-download
- make -C jbmc/src setup-submodules
- make -C src CXX='ccache /usr/bin/clang++-3.8' CXX_FLAGS='-Qunused-arguments -DDEBUG'
- make -C jbmc/src CXX='ccache /usr/bin/clang++-3.8' CXX_FLAGS='-Qunused-arguments -DDEBUG'
post_build:
commands:
- echo Build completed on `date`
cache:
paths:
- '/var/cache/apt/**/*'
- '/var/lib/apt/lists/**/*'
- '/root/.ccache/**/*'