forked from Intel-HLS/TileDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (48 loc) · 1.48 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Adapted from
# http://gronlier.fr/blog/2015/01/adding-code-coverage-to-your-c-project/
sudo: required
dist: trusty
env:
- TILEDB_BUILD_DIR=$TRAVIS_BUILD_DIR/build
install:
# Install cmake, lcov, MPICH
- sudo apt-get -y install cmake lcov mpich
# Install zlib, OpenSSL, Gtest and LZ4
- sudo apt-get -y install zlib1g-dev libssl-dev libgtest-dev liblz4-dev
# Install Zstandard
- wget https://github.com/facebook/zstd/archive/v1.0.0.tar.gz
- tar xf v1.0.0.tar.gz
- cd zstd-1.0.0
- sudo make install PREFIX='/usr'
- cd $TRAVIS_BUILD_DIR
# Install Blosc
- git clone https://github.com/Blosc/c-blosc
- cd c-blosc
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX='/usr' ..
- cmake --build .
- sudo cmake --build . --target install
- cd $TRAVIS_BUILD_DIR
# Install Google Test
- cd /usr/src/gtest
- sudo cmake .
- sudo make
- sudo mv libgtest* /usr/lib/
- cd $TRAVIS_BUILD_DIR
# Install lcov to coveralls conversion + upload tool
- gem install coveralls-lcov
# Build TileDB
- rm -rf $TILEDB_BUILD_DIR
- mkdir -p $TILEDB_BUILD_DIR
- cd $TILEDB_BUILD_DIR
- cmake .. -DCMAKE_BUILD_TYPE=Coverage
- make -j 4
before_script:
- lcov --directory $TILEDB_BUILD_DIR --zerocounters
script:
- make check -j 4
after_success:
- cd $TILEDB_BUILD_DIR
- lcov --directory . --capture --output-file coverage.info
- lcov --list coverage.info # debug before upload