-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
42 lines (36 loc) · 1.01 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
language: bash
# Travis build lifecycle https://docs.travis-ci.com/user/customizing-the-build#The-Build-Lifecycle
sudo: true
services:
- docker
env:
- KCOV_IMG="ragnaroek/kcov:v33"
cache:
bundler: true
directories: $HOME/docker
matrix:
include:
- os: linux
- os: osx
before_install:
- if [[ -f "$HOME/docker/kcov" ]]; then docker load -i "$HOME/docker/kcov"; fi
before_script:
- chmod +x test/unittest.sh
- chmod +x test/bsd_date_mock.sh
- chmod +x bin/timelog
- chmod +x test/test_dep.sh
- export PATH=$PATH:$PWD/bin
- pushd test/
- ./test_dep.sh
- popd
script:
- export PATH=$PATH:$PWD/bin/
- pushd test/
- ./unittest.sh
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./bsd_date_mock.sh; fi
- popd
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./runMetrics.sh $KCOV_IMMG; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cd metrics; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then bash <(curl -s https://codecov.io/bash); fi
before_cache:
- docker save $KCOV_IMG -o "$HOME/docker/kcov"