2015-04-02 13:31:23 +02:00
|
|
|
language: cpp
|
|
|
|
|
2016-10-31 18:14:49 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
compiler: clang
|
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
2015-04-02 13:31:23 +02:00
|
|
|
|
2016-10-31 18:14:49 +01:00
|
|
|
before_install:
|
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
sudo apt-get -qq update;
|
|
|
|
sudo apt-get install -y qtbase5-dev;
|
|
|
|
sudo apt-get install -y libqt5svg5-dev;
|
|
|
|
sudo apt-get install -y qt5-default;
|
|
|
|
sudo apt-get install -y qttools5-dev-tools;
|
|
|
|
sudo apt-get install -y libqt5xmlpatterns5-dev;
|
|
|
|
sudo apt-get install -y libqt5core5a;
|
|
|
|
sudo apt-get install -y libqt5gui5;
|
|
|
|
sudo apt-get install -y libqt5printsupport5;
|
|
|
|
sudo apt-get install -y libqt5svg5;
|
|
|
|
sudo apt-get install -y libqt5widgets5;
|
|
|
|
sudo apt-get install -y libqt5xml5;
|
|
|
|
sudo apt-get install -y libqt5xmlpatterns5;
|
|
|
|
sudo apt-get install -y xpdf;
|
|
|
|
sudo apt-get install -y xvfb;
|
|
|
|
else
|
|
|
|
brew update > /dev/null;
|
|
|
|
brew install qt5;
|
|
|
|
chmod -R 755 /usr/local/opt/qt5/*
|
|
|
|
fi
|
2015-04-15 23:17:42 +02:00
|
|
|
|
2015-04-02 13:31:23 +02:00
|
|
|
before_script:
|
2016-10-31 18:14:49 +01:00
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
uname -a;
|
|
|
|
which qmake;
|
|
|
|
else
|
|
|
|
QTDIR="/usr/local/opt/qt5";
|
|
|
|
PATH="$QTDIR/bin:$PATH";
|
|
|
|
LDFLAGS=-L$QTDIR/lib;
|
|
|
|
CPPFLAGS=-I$QTDIR/include;
|
|
|
|
PKG_CONFIG_PATH=/usr/local/opt/qt5/lib/pkgconfig;
|
|
|
|
fi
|
2015-04-02 13:31:23 +02:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2016-10-31 18:14:49 +01:00
|
|
|
- pwd
|
2015-04-02 13:31:23 +02:00
|
|
|
- qmake --version
|
2016-10-31 18:14:49 +01:00
|
|
|
- qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache CONFIG+=checkWarnings
|
2015-04-02 13:31:23 +02:00
|
|
|
|
|
|
|
script:
|
2015-04-15 23:17:42 +02:00
|
|
|
- $CXX --version
|
2016-10-31 18:14:49 +01:00
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
2016-11-01 16:36:18 +01:00
|
|
|
make -j$(nproc)
|
2016-10-31 18:14:49 +01:00
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/home/travis/build/dismine/Valentina/build/src/libs/vpropertyexplorer/bin:/home/travis/build/dismine/Valentina/build/src/libs/qmuparser/bin";
|
|
|
|
xvfb-run -a make --silent check TESTARGS="-silent";
|
|
|
|
else
|
2016-11-01 16:36:18 +01:00
|
|
|
make -j1
|
2016-10-31 18:14:49 +01:00
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/Users/travis/build/dismine/Valentina/build/src/libs/vpropertyexplorer/bin:/Users/travis/build/dismine/Valentina/build/src/libs/qmuparser/bin";
|
|
|
|
make --silent check TESTARGS="-silent";
|
|
|
|
fi
|
2015-04-02 13:31:23 +02:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- dismine@gmail.com
|
2015-04-05 19:15:38 +02:00
|
|
|
- susan.spencer@gmail.com
|
2015-04-02 13:31:23 +02:00
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
2016-10-31 18:14:49 +01:00
|
|
|
|