add DALI_CORE_API
[platform/core/uifw/dali-core.git] / .travis.yml
1 language: cpp
2 sudo: required
3 dist: trusty
4
5 matrix:
6   include:
7     - compiler: gcc
8       addons:
9         apt:
10           sources:
11             - ubuntu-toolchain-r-test
12           packages:
13             - g++-5  libexpat1-dev libxml-parser-perl lcov
14       env: COMPILER=g++-5
15
16 before_install:
17   - pip install --user cpp-coveralls
18   - gem install coveralls-lcov
19   - lcov --version
20
21 install:
22   # install latest LCOV (1.10 still has perl error)
23   - wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
24   - tar xf lcov_1.11.orig.tar.gz
25   - sudo make -C lcov-1.11/ install
26
27 script:
28   - pushd build/tizen/
29   - autoreconf --install
30   - export CXXFLAGS="--coverage "
31   - export LD_LIBRARY_PATH=/usr/local/lib
32   - ./configure --enable-profile=UBUNTU --enable-debug
33   - make -j7
34   - sudo make install
35   - popd
36   - pushd automated-tests/
37   - ./build.sh
38   - ./execute.sh
39   - ./coverage.sh -n
40   - popd
41
42 after_success:
43   - find . -name dali.info -exec sh -c "cat {} >> cov.info" \;
44   - coveralls-lcov --repo-token ${COVERALLS_REPO_TOKEN} cov.info # uploads to coveralls
45   # - coveralls --exclude lib --exclude tests --gcov-options '\-lp'