forked from voutcn/megahit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (29 loc) · 1.11 KB
/
.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
26
27
28
29
dist: xenial
before_install:
- sudo apt-get update
- sudo apt-get install -y wget
language: python
python:
- "2.7"
- "3.4"
script:
- mkdir build
- cd build && cmake .. -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
- wget http://downloads.sourceforge.net/ltp/lcov-1.14.tar.gz
- tar zvxf lcov-1.14.tar.gz
- export PATH=lcov-1.14/bin/:${PATH}
- 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 '*parallel_hashmap/*' --output-file coverage.info # filter parallel-hashmap-files
- lcov --remove coverage.info '*pprintpp/*' --output-file coverage.info # filter pprintpp 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"