-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
55 lines (46 loc) · 1.85 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
43
44
45
46
47
48
49
50
51
52
53
54
55
sudo: required
dist: trusty
language: cpp
compiler:
- gcc
# - clang
os:
- linux
- osx
env:
global:
- CTEST_OUTPUT_ON_FAILURE=1
matrix:
- TRAVIS_BUILD_TYPE=Debug
- TRAVIS_BUILD_TYPE=Release
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew tap robotology/cask; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew tap homebrew/core; fi
install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew outdated cmake || brew upgrade cmake; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then if ! brew ls --versions python > /dev/null; then brew install python; fi; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install tinyxml lua51; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y cmake3 libtinyxml-dev liblua5.1-dev python-dev lcov; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo gem install coveralls-lcov; fi
before_script:
- python --version
- ruby --version
script:
# configure robot-testing-framework
- mkdir build
- cd build
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then cmake -DENABLE_CODE_PROFILING:BOOL=ON -DENABLE_LUA_PLUGIN:BOOL=ON -DENABLE_PYTHON_PLUGIN:BOOL=ON -DENABLE_WEB_LISTENER:BOOL=ON ..; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then cmake -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} -DENABLE_LUA_PLUGIN:BOOL=ON -DENABLE_PYTHON_PLUGIN:BOOL=ON -DENABLE_WEB_LISTENER:BOOL=ON ..; fi
- make
- ctest --output-on-failure --build . -C ${TRAVIS_BUILD_TYPE}
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then make coverage ; fi
- sudo make install
after_success:
- coveralls-lcov --repo-token Gcfb0Rzm9kFpzrwyT5NiQQivi2oWvvjdm coverage.info.cleaned
# - bash <(curl -s https://codecov.io/bash)
notifications:
email:
- pegua1@gmail.com
- ali.paikan@gmail.com