mirror of
https://github.com/bspeice/qadapt
synced 2024-11-24 14:58:12 -05:00
Don't always build code coverage
This commit is contained in:
parent
e5d47f2400
commit
4daa291b1b
32
.travis.yml
32
.travis.yml
@ -41,21 +41,23 @@ script:
|
|||||||
after_script: set +e
|
after_script: set +e
|
||||||
after_success: |
|
after_success: |
|
||||||
# Build test coverage statistics
|
# Build test coverage statistics
|
||||||
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && \
|
if [ -z "$CODECOV" ]; then
|
||||||
tar xzf master.tar.gz && \
|
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && \
|
||||||
cd kcov-master && \
|
tar xzf master.tar.gz && \
|
||||||
mkdir build && \
|
cd kcov-master && \
|
||||||
cd build && \
|
mkdir build && \
|
||||||
cmake .. && \
|
cd build && \
|
||||||
make && \
|
cmake .. && \
|
||||||
make install DESTDIR=../../kcov-build && \
|
make && \
|
||||||
rm -rf kcov-master && \
|
make install DESTDIR=../../kcov-build && \
|
||||||
for file in target/debug/*-*[^\.d]; do \
|
rm -rf kcov-master && \
|
||||||
mkdir -p "target/cov/$(basename $file)"; \
|
for file in target/debug/*-*[^\.d]; do \
|
||||||
./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; \
|
mkdir -p "target/cov/$(basename $file)"; \
|
||||||
done && \
|
./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; \
|
||||||
bash <(curl -s https://codecov.io/bash) && \
|
done && \
|
||||||
echo "Uploaded code coverage"
|
bash <(curl -s https://codecov.io/bash) && \
|
||||||
|
echo "Uploaded code coverage"
|
||||||
|
fi
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
Loading…
Reference in New Issue
Block a user