forked from unkontributors/super_unko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (39 loc) · 896 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: bash
env:
global:
- PATH=${PATH}:${HOME}/kcov/bin
addons:
apt:
packages:
- binutils-dev
- libcurl4-openssl-dev
- libdw-dev
- libiberty-dev
- bats
before_install:
# kcov - coverage
- wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz
install:
# kcov
- tar xzf master.tar.gz
- cd kcov-master
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=${HOME}/kcov ..
- make
- make install
- cd ../..
- rm -rf kcov-master
- mkdir -p coverage
script:
- |
if [[ "$SH_VERSION" == default ]]; then
# コンテナ経由で実行しようとすると失敗するのでしかたなく直接実行
./test.sh || true
fi
after_success:
# ダミーで送信
- |
if [[ "$SH_VERSION" == default ]]; then
kcov --coveralls-id=$TRAVIS_JOB_ID test/coverage bin/unko.tower 3
fi