blob: 7d3a7ca91be8a641df6f843c4589dea02a8d175e [file] [log] [blame]
language: c
compiler: gcc
dist: trusty
install:
- gem install coveralls-lcov
services:
- docker
jobs:
include:
- stage: test
script:
- echo "Build docker image and run tests"
- docker build -t libmpc .
- docker run --cap-add SYS_PTRACE --rm libmpc
#- stage: coverage
# script:
# - echo "Generate coverage figures"
# - docker build -t libmpc .
# - CONTAINER_ID=$(docker run --cap-add SYS_PTRACE -d libmpc ./scripts/coverage.sh)
# - sleep 100
# - docker logs $CONTAINER_ID
# - docker cp ${CONTAINER_ID}:"/root/target/Coverage/coverage" ./
# - docker rm -f ${CONTAINER_ID} || true
# - sed -i "s|root|home/travis/build/apache/libmpc|" ./coverage/libmpc.info
# - coveralls-lcov /home/travis/build/apache/libmpc/coverage/libmpc.info