Aegisub/.travis.yml

105 lines
2.5 KiB
YAML
Raw Normal View History

2020-03-10 00:47:07 +01:00
os: linux
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
2020-05-07 19:26:25 +02:00
- gcc-10
- g++-10
- python3-pip
- python3-setuptools
homebrew:
packages:
- autoconf
- boost
- ffmpeg
- ffms2
- fftw
- freetype
- fribidi
- gettext
- icu4c
- libass
- lua
- luarocks
- m4
- wxmac
- hunspell
- uchardet
update: true
2019-09-02 20:25:52 +02:00
2019-09-21 10:16:15 +02:00
env:
- ''
- BUILD_SUIT=autotools WITH_COVERALLS=y
2020-05-07 19:26:25 +02:00
- CC=gcc-10 CXX=g++-10
- BUILD_SUIT=autotools CC=gcc-10 CXX=g++-10
2020-02-10 21:27:07 +01:00
jobs:
include:
- os: osx
osx_image: xcode11.5
2020-02-10 21:27:07 +01:00
env: BUILD_SUIT=autotools
2014-07-02 20:33:49 +02:00
install:
2020-02-10 21:27:07 +01:00
- ./.travis/install.sh
2014-07-02 20:33:49 +02:00
script:
- if [ "$TRAVIS_OS_NAME" = 'osx' ]; then
2020-02-10 21:27:07 +01:00
export PATH="/usr/local/opt/gettext/bin:/usr/local/opt/icu4c/sbin:/usr/local/opt/icu4c/bin:$PATH";
export CPPFLAGS="-I/usr/local/opt/gettext/include -I/usr/local/opt/icu4c/include";
export LDFLAGS="-L/usr/local/opt/gettext/lib -L/usr/local/opt/icu4c/lib";
export ACLOCAL_PATH="/usr/local/opt/gettext/share/aclocal";
2020-02-10 21:27:07 +01:00
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig";
./autogen.sh;
./configure --enable-debug || cat config.log;
make -j2 || travis_terminate 1;
make test || travis_terminate 1;
elif [ "$BUILD_SUIT" = 'autotools' ]; then
if [ ! -z "$WITH_COVERALLS" ]; then
export CPPFLAGS="--coverage";
export LIBS="-lgcov";
fi;
2019-09-02 20:25:52 +02:00
./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;
else
mkdir build-dir;
cd build-dir;
cmake -DCMAKE_CXX_FLAGS='-Wall -Wextra -Wno-unused-parameter -pedantic' -DCMAKE_C_FLAGS='-Wall -Wextra -Wno-unused-parameter' -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
after_success:
- if [ ! -z "$WITH_COVERALLS" ]; then
coveralls --exclude vendor --exclude src --exclude build --exclude tools --exclude libaegisub/windows > /dev/null;
fi