1
0
mirror of https://github.com/bspeice/qadapt synced 2024-11-14 10:08:08 -05:00

Don't always build code coverage

This commit is contained in:
Bradlee Speice 2018-12-02 23:14:05 -05:00
parent e5d47f2400
commit 4daa291b1b

View File

@ -41,21 +41,23 @@ script:
after_script: set +e
after_success: |
# Build test coverage statistics
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && \
tar xzf master.tar.gz && \
cd kcov-master && \
mkdir build && \
cd build && \
cmake .. && \
make && \
make install DESTDIR=../../kcov-build && \
rm -rf kcov-master && \
for file in target/debug/*-*[^\.d]; do \
mkdir -p "target/cov/$(basename $file)"; \
./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; \
done && \
bash <(curl -s https://codecov.io/bash) && \
echo "Uploaded code coverage"
if [ -z "$CODECOV" ]; then
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && \
tar xzf master.tar.gz && \
cd kcov-master && \
mkdir build && \
cd build && \
cmake .. && \
make && \
make install DESTDIR=../../kcov-build && \
rm -rf kcov-master && \
for file in target/debug/*-*[^\.d]; do \
mkdir -p "target/cov/$(basename $file)"; \
./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; \
done && \
bash <(curl -s https://codecov.io/bash) && \
echo "Uploaded code coverage"
fi
branches:
only: