Test with PostgreSQL too (#309)

* Test with PostgreSQL too

* Add 'test' to Travis build stages

* Add test coverage for postgresql
This commit is contained in:
Baptiste Gelez
2018-11-07 15:50:24 +01:00
committed by GitHub
parent 3690e4cfb9
commit b28411da99
3 changed files with 59 additions and 30 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
tar xzf master.tar.gz &&
mkdir -p kcov-master/build &&
cd kcov-master/build &&
cmake .. &&
make &&
sudo make install &&
cd ../.. &&
for file in target/debug/*-*[^\.d]; do
if [[ -x "$file" ]]
then
filename=$(basename $file)
mkdir -p "target/cov/$filename"
kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$filename" "$file"
fi
done &&
bash <(curl -s https://codecov.io/bash) &&
echo "Uploaded code coverage"