-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtravis.sh
30 lines (26 loc) · 806 Bytes
/
travis.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Varie
apt-get install libxext-dev
# Build speect
cd SpeectInstaller
./install.sh
cd ..
rm -rf test-framework/build
mkdir test-framework/build
# Build QT
rm -rf build
mkdir build
cd build
cmake ../DeSpeect -DENABLE_COVERAGE=On || exit 1
make || exit 2
ctest || exit 4
gcov -o ../gcov_file ../DeSpeect/main.cpp
gcov -o ../gcov_file ../DeSpeect/Model/Command/src/*.cpp
gcov -o ../gcov_file ../DeSpeect/Model/SpeectWrapper/src/*.cpp
gcov -o ../gcov_file ../DeSpeect/Qt/src/*.cpp
gcov -o ../gcov_file ../DeSpeect/Test/*.cpp
lcov --directory . --capture --output-file codecov.info
#lcov --directory . --capture --output-file coverage.info # capture coverage info
#lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter out system
#lcov --list coverage.info #debug info
cd ..