2020-01-19 01:29:26 +01:00
|
|
|
version: 2.1
|
2018-04-18 09:55:53 +02:00
|
|
|
jobs:
|
|
|
|
build:
|
2018-11-20 15:12:21 +01:00
|
|
|
environment:
|
2018-11-20 16:23:06 +01:00
|
|
|
# - CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
|
2018-11-20 16:12:03 +01:00
|
|
|
- CIRCLE_TEST_RESULTS: /tmp/circleci-test-results
|
2020-01-19 01:29:26 +01:00
|
|
|
parallelism: 1
|
2018-04-18 09:55:53 +02:00
|
|
|
docker:
|
2020-01-19 01:29:26 +01:00
|
|
|
- image: circleci/buildpack-deps:latest
|
|
|
|
working_directory: ~/xiph/ezstream
|
|
|
|
shell: /bin/bash --login
|
2018-04-18 09:55:53 +02:00
|
|
|
steps:
|
|
|
|
- checkout
|
2018-11-20 16:23:06 +01:00
|
|
|
# - run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_RESULTS
|
|
|
|
- run: mkdir -p $CIRCLE_TEST_RESULTS
|
2018-04-18 09:55:53 +02:00
|
|
|
- run: sudo apt-get install lcov check libshout-dev libtagc0-dev libxml2-dev
|
|
|
|
- run: ./autogen.sh
|
|
|
|
- run: ./configure
|
|
|
|
- run: make distcheck distclean
|
|
|
|
- run: ./configure CFLAGS='-O0 -fprofile-arcs -ftest-coverage -fstack-protector-all'
|
|
|
|
- run: make check
|
|
|
|
- run: mkdir coverage
|
|
|
|
- run: lcov --capture --output-file coverage/ezstream.lcov --rc lcov_branch_coverage=1 --directory src --test-name ezstream
|
|
|
|
- run: make distclean
|
|
|
|
- run: bash <(curl -s https://codecov.io/bash)
|
|
|
|
- store_test_results:
|
|
|
|
path: /tmp/circleci-test-results
|
2018-11-20 16:23:06 +01:00
|
|
|
# - store_artifacts:
|
|
|
|
# path: /tmp/circleci-artifacts
|