.travis.yml 1.57 KB
Newer Older
1
language: generic
2
python:
3
  - "2.7"
olivier stasse's avatar
olivier stasse committed
4
sudo: required
Guilhem Saurel's avatar
Guilhem Saurel committed
5
dist: xenial
6 7
git:
  depth: false
8
compiler:
9
  - gcc
10
# - clang
11
env:
12 13
  global:
    - secure: "SnIBG/xLIHX3CSvUbqqsX8xTVqIqQ7fFS6HWO6KZQVBsT6yugTwYHbyhNiU531JejYJ/I3ZrDhXfYH3qFZiYxnH1sifvwV+fnTtMXpPN7qPZwIymkjcmm6gJF51e0C7VOfUbvKFv0ngwj+ul21rgZSMuoEvxPK0WxtE3/ZSfn9c="
14
    - APT_DEPENDENCIES="doxygen libeigen3-dev "
15
    - DEBSIGN_KEYID=5AE5CD75
16
    - LCOV_IGNORE_RULES="*unittest* /opt/openrobots/*"
17
    - CC=gcc
18 19
    - DO_COVERAGE_ON_BRANCH="master;release"
    - DO_CPPCHECK_ON_BRANCH=""
20
    - DO_INSTALL_DOC_EXCEPT_ON_BRANCH=""
21 22
  matrix:
    # - BUILDTYPE=Release
23 24
    # - BUILDTYPE=Debug
    - BUILDTYPE=Minsizerel
25 26
notifications:
email:
27
  - hpp-source@laas.fr
28 29
branches:
only:
30 31 32
  - master
  - debian
  - devel
33
matrix:
34 35 36
  include:
    - dist: trusty
    - dist: xenial
37
allow_failures:
38 39 40 41
  - compiler:
before_install: ./travis_custom/custom_before_install
install:
  - pip install --user coveralls
42
  - pip install --user numpy
43 44
script:
  - export CMAKE_ADDITIONAL_OPTIONS="-DCMAKE_BUILD_TYPE=${BUILDTYPE}"
45
  - sudo free -m -t
46
  - travis_wait 40 ./.travis/run ../travis_custom/custom_build
47
after_failure: ./.travis/run after_failure
48 49 50 51
after_success:
  - ./.travis/run after_success
  #- export PYTHONPATH=$install_dir/lib/python2.7/site-packages
  #- coveralls-lcov -v -n $build_dir/coverage.info > coverage.json
52
  - export PYTHONPATH=$PYHTONPATH:/tmp/_ci/install/lib/python2.7/site-packages:/usr/lib/python2.7/dist-packages
53
  - coveralls-lcov -v -n /tmp/_ci/build/coverage.info > coverage.json
54
  - coverage2 run ./python/tests.py
55
  - coveralls --merge=coverage.json