forked from TileDB-Inc/TileDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (32 loc) · 1.1 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
sudo: required
dist: trusty
language: cpp
env:
matrix:
- USE_HDFS="ON"
- USE_HDFS="OFF"
install:
# Install lcov to coveralls conversion + upload tool
- sudo apt-get install lcov
- gem install coveralls-lcov
# Install clangformat (v5.0)
# - sudo scripts/install-clangformat.sh
# Install library dependencies
- sudo scripts/install-deps.sh
# Install hadoop if HDFS is enabled
- if [ "$USE_HDFS" == "ON" ]; then source scripts/install-hadoop.sh; fi
# Build TileDB
- mkdir -p $TRAVIS_BUILD_DIR/build && cd $TRAVIS_BUILD_DIR/build
- if [ "$USE_HDFS" == "ON" ]; then ../bootstrap --enable-coverage --enable-verbose --enable-hdfs; fi
- if [ "$USE_HDFS" == "OFF" ]; then ../bootstrap --enable-coverage --enable-verbose; fi
- make -j4
- make examples -j4
before_script:
- lcov --directory $TRAVIS_BUILD_DIR/build --zerocounters
script:
#- make check-format
- make check
after_success:
- cd $TILEDB_BUILD_DIR/build
- lcov --directory . --capture --output-file coverage.info
- lcov --list coverage.info # debug before upload