Aegisub/.travis.yml

83 lines
2.0 KiB
YAML
Raw Normal View History

sudo: required
2019-09-02 20:25:52 +02:00
dist: bionic
2014-07-02 20:33:49 +02:00
language: cpp
2014-07-02 20:33:49 +02:00
git:
submodules: false
addons:
apt:
sources:
2019-09-21 10:16:15 +02:00
- sourceline: 'ppa:ubuntu-toolchain-r/test'
2019-09-11 23:10:53 +02:00
- sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main'
2019-05-08 21:11:23 +02:00
key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc'
packages:
- libasound2-dev
- libfftw3-dev
- libhunspell-dev
- libfribidi-dev
- libass-dev
- libicu-dev
- luarocks
2019-05-08 21:11:23 +02:00
- cmake
- build-essential
- libboost-all-dev
- libffms2-dev
- libfontconfig1-dev
2019-09-11 23:10:53 +02:00
- libopenal-dev
2019-05-08 21:11:23 +02:00
- libuchardet-dev
- libwxgtk3.0-dev
2019-09-02 20:25:52 +02:00
- portaudio19-dev
- libpulse-dev
2019-09-08 11:53:48 +02:00
- autopoint
2019-09-11 23:10:53 +02:00
- libgtest-dev
2019-09-21 10:16:15 +02:00
- gcc-9
- g++-9
2019-09-02 20:25:52 +02:00
2019-09-21 10:16:15 +02:00
env:
- ''
- BUILD_SUIT=autotools
- CC=gcc-9 CXX=g++-9
- BUILD_SUIT=autotools CC=gcc-9 CXX=g++-9
2014-07-02 20:33:49 +02:00
install:
2019-09-02 20:25:52 +02:00
- sudo luarocks install busted > /dev/null
- sudo luarocks install moonscript > /dev/null
- sudo luarocks install uuid > /dev/null
# Remove the CMake provided by travis
- sudo rm -rf /usr/local/cmake*
- if [ "$BUILD_SUIT" = "autotools" ]; then
sudo pip install -U cpp-coveralls;
git submodule --quiet init;
git submodule --quiet update vendor/googletest;
2019-09-11 23:10:53 +02:00
else
pushd /usr/src/googletest;
sudo cmake .;
sudo make install -j2;
popd;
2019-09-02 20:25:52 +02:00
fi
2014-07-02 20:33:49 +02:00
script:
2019-09-02 20:25:52 +02:00
- if [ "$BUILD_SUIT" = "autotools" ]; then
export CPPFLAGS="-fprofile-arcs -ftest-coverage";
export LIBS="-lgcov";
./autogen.sh;
./configure --enable-debug || cat config.log;
2019-10-17 22:14:21 +02:00
make -j2 || travis_terminate 1;
2019-09-02 20:25:52 +02:00
make test || travis_terminate 1;
coveralls --exclude vendor --exclude src --exclude build --exclude tools --exclude libaegisub/windows > /dev/null;
else
./build/version.sh .;
mkdir build-dir;
cd build-dir;
2019-09-11 23:10:53 +02:00
cmake -DCMAKE_CXX_FLAGS='-Wall -Wextra -Wno-unused-parameter -pedantic' -DCMAKE_C_FLAGS='-Wall' -DWITH_STARTUPLOG=ON -DWITH_TEST=ON ..;
2019-10-17 22:14:21 +02:00
make -j2 || travis_terminate 1;
2019-09-11 23:10:53 +02:00
make test || travis_terminate 1;
2019-09-02 20:25:52 +02:00
fi
2014-07-02 20:33:49 +02:00
notifications:
email:
- on_success: change
- on_failure: change
2014-07-02 20:33:49 +02:00