forked from voutcn/megahit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (25 loc) · 916 Bytes
/
.travis.yml
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
dist: xenial
before_install:
- sudo apt-get update
- sudo apt-get install lcov
language: python
python:
- "2.7"
- "3.4"
script:
- mkdir build
- cd build && cmake .. -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=ON
- make -j2 simple_test
- sudo make install
- megahit --test
- megahit --test --kmin-1pass
- megahit --test --no-hw-accel
after_success:
# Create lcov report
- lcov --capture --directory . --output-file coverage.info
- lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter system-files
- lcov --remove coverage.info '*xxHash/*' --output-file coverage.info # filter xxhash-files
- lcov --remove coverage.info '*sparsepp/*' --output-file coverage.info # filter sparsepp-files
- lcov --list coverage.info # debug info
# Uploading report to CodeCov
- bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports"