2013-04-02 21:15:22 +00:00
|
|
|
language: cpp
|
|
|
|
compiler:
|
2013-04-05 22:01:44 +00:00
|
|
|
- gcc
|
2013-04-05 22:45:04 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2014-02-13 11:30:53 +00:00
|
|
|
- /openmw-.*$/
|
2013-04-02 21:20:59 +00:00
|
|
|
before_install:
|
2013-04-05 22:18:14 +00:00
|
|
|
- pwd
|
2013-04-05 21:28:44 +00:00
|
|
|
- echo "yes" | sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
|
2013-11-20 09:16:51 +00:00
|
|
|
- echo "yes" | sudo apt-add-repository ppa:openmw/openmw
|
2013-04-02 21:30:44 +00:00
|
|
|
- sudo apt-get update -qq
|
2014-08-29 12:40:32 +00:00
|
|
|
- sudo apt-get install -qq libgtest-dev google-mock
|
|
|
|
- sudo apt-get install -qq libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-thread-dev libboost-wave-dev
|
2014-09-11 06:47:00 +00:00
|
|
|
- sudo apt-get install -qq libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libavresample-dev
|
2014-08-29 12:40:32 +00:00
|
|
|
- sudo apt-get install -qq libbullet-dev libogre-1.9-dev libmygui-dev libsdl2-dev libunshield-dev libtinyxml-dev libopenal-dev libqt4-dev
|
2013-04-05 22:01:44 +00:00
|
|
|
- sudo mkdir /usr/src/gtest/build
|
|
|
|
- cd /usr/src/gtest/build
|
|
|
|
- sudo cmake .. -DBUILD_SHARED_LIBS=1
|
|
|
|
- sudo make -j4
|
|
|
|
- sudo ln -s /usr/src/gtest/build/libgtest.so /usr/lib/libgtest.so
|
|
|
|
- sudo ln -s /usr/src/gtest/build/libgtest_main.so /usr/lib/libgtest_main.so
|
|
|
|
before_script:
|
2013-04-05 22:18:14 +00:00
|
|
|
- cd -
|
2013-04-05 22:01:44 +00:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2014-08-29 12:40:32 +00:00
|
|
|
- cmake .. -DBUILD_WITH_CODE_COVERAGE=1 -DBUILD_UNITTESTS=1 -DCMAKE_INSTALL_PREFIX=/usr -DBINDIR=/usr/games -DCMAKE_BUILD_TYPE="RelWithDebInfo" -DUSE_SYSTEM_TINYXML=TRUE
|
2013-04-05 22:45:04 +00:00
|
|
|
script:
|
|
|
|
- make -j4
|
|
|
|
after_script:
|
2013-04-05 23:04:41 +00:00
|
|
|
- ./openmw_test_suite
|
2013-04-02 21:15:22 +00:00
|
|
|
notifications:
|
|
|
|
recipients:
|
|
|
|
- lgromanowski+travis.ci@gmail.com
|
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
2014-02-13 11:35:33 +00:00
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "chat.freenode.net#openmw"
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
2014-03-31 19:52:20 +00:00
|
|
|
use_notice: true
|