2015-04-02 13:31:23 +02:00
|
|
|
language: cpp
|
2016-10-31 18:14:49 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
2016-12-16 10:38:47 +01:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
compiler: clang
|
|
|
|
env: DEPLOY=false
|
2016-12-19 10:58:20 +01:00
|
|
|
cache:
|
|
|
|
- ccache
|
|
|
|
directories:
|
|
|
|
- '$HOME/.sonar/cache'
|
2016-12-16 10:38:47 +01:00
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
|
|
|
env: DEPLOY=true
|
2016-10-31 18:14:49 +01:00
|
|
|
before_install:
|
2016-12-16 10:38:47 +01:00
|
|
|
- |
|
|
|
|
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-02 13:31:23 +02:00
|
|
|
before_script:
|
2016-12-16 10:38:47 +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
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- pwd
|
|
|
|
- qmake --version
|
2016-12-16 10:55:59 +01:00
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=checkWarnings;
|
|
|
|
else
|
|
|
|
qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache CONFIG+=checkWarnings CONFIG+=noTests;
|
|
|
|
fi
|
2015-04-02 13:31:23 +02:00
|
|
|
script:
|
2016-12-16 10:38:47 +01:00
|
|
|
- $CXX --version
|
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
2017-03-17 16:38:07 +01:00
|
|
|
build-wrapper-linux-x86-64 --out-dir bw-outputs make -j$(nproc);
|
2016-12-16 10:38:47 +01:00
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$TRAVIS_BUILD_DIR/build/src/libs/vpropertyexplorer/bin:$TRAVIS_BUILD_DIR/build/src/libs/qmuparser/bin";
|
|
|
|
xvfb-run -a make --silent check TESTARGS="-silent";
|
2016-12-19 10:58:20 +01:00
|
|
|
cd ..;
|
2017-03-17 16:38:07 +01:00
|
|
|
sonar-scanner -X;
|
2016-12-16 10:38:47 +01:00
|
|
|
else
|
|
|
|
make -j1;
|
|
|
|
fi
|
2015-04-02 13:31:23 +02:00
|
|
|
notifications:
|
2016-12-16 10:38:47 +01:00
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- dismine@gmail.com
|
|
|
|
- susan.spencer@gmail.com
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
|
|
|
before_deploy:
|
|
|
|
- |
|
|
|
|
if [[ "$DEPLOY" == "true" ]]; then
|
2016-12-27 13:31:20 +01:00
|
|
|
../scripts/macfixqtdylibrpath.py $TRAVIS_BUILD_DIR/build/src/app/valentina/bin/Valentina.app;
|
2016-12-26 12:37:02 +01:00
|
|
|
tar --exclude "*.DS_Store" -cvzf valentina-osx-${TRAVIS_COMMIT}.tar.gz $TRAVIS_BUILD_DIR/build/src/app/valentina/bin/Valentina.app/;
|
2016-12-16 10:38:47 +01:00
|
|
|
fi
|
|
|
|
deploy:
|
|
|
|
provider: bintray
|
|
|
|
skip_cleanup: true
|
|
|
|
file: ../share/bintray.json
|
|
|
|
user: dismine
|
|
|
|
key:
|
2016-12-19 11:43:42 +01:00
|
|
|
secure: xVM/jvRAnn/eCpFwYGzP5x5kGKw90PhRG6cLwUIuXy1fg95OM9z8QZh/HRH/sRo4Dw3JRhjpImeXyMFC0FDtILDZa+G1qr5I5cfv87ZUmBzRGwZ6X3pXErsRbhOHNahPmtJet0OJothMP/iApbZizyO1fbsKTPcIum0SZjRCUJPE+rHay5OIJwaeVexAjyX36Y9ekjClHd3H+EP9mn45avzAYm30tHjiMLhmVUlv2d/PhuvijiYoamOSZUkCE6Q2SH/yBfJJeAixOgfyCAXXZVysCo6oCBfFswzw9Ic9X15YyQGmzYuLv8/g/1+leISVJvlMUW3BymWc3NKnpfYa2v0lHnZvNRkDFa7koxlIyNeVcdaISM5PUXW5db3K+fq7Ra854ga2PIoV7VsB5+cJg0BjDMedy4ZoxP8JMQhWgTWb29YSTPm43TO+/zSLO0Eruc6YQGYqorXGBOCWi6oxvC0ESI0mT+0iji/P96Rfz5yHdVxSh/bNj8+lSXhLYnSgDx2SMhV5+Xlwrg1iHf6VJ350dgWr8RVohHkyDD9dVcQipMarH4EhIPD5LZ5cfzAIu9NFVk77jtoFB1nC9CBYuQpv9mJ9Yafnxz8isfOgdzrcT/6NfgYvlbalDF4chWs3PhnhrZu3bVZ274gqvJiMEvnkHjdZvu62kSv5k8EDcpU=
|
2016-12-16 10:38:47 +01:00
|
|
|
dry-run: false
|
|
|
|
on:
|
|
|
|
all_branches: true
|
|
|
|
condition: $DEPLOY = true
|
2016-12-19 10:58:20 +01:00
|
|
|
addons:
|
|
|
|
sonarqube:
|
|
|
|
token:
|
|
|
|
secure: oH/mO3ocMzMRXi4krBKMbskzfR5r5DwyL9d+qr3AxKqlFLojvZDXBRogn/jnceDIuajol/OI/8uMxR5k+N241jj5/iEYun9t1Lejh+VOhgIEEuzPkeAFzlLoK91LWigqNuf0vTI2laaYxO9oRUIEKoTgBkkwMeMWu/8raIvUhyKyqHMofWp/9htuqHcSav3AN/Plu6wiC3Sg6wSalu4YNbL1hQBIKuZeRVmSMkh8f9llGPy33sljYDDCZ4RcyJlvLq+Ffh95tCnp88f8cSnxju1bEOEF/5iYQXoOwtCltRMy2XbkCm4lmdPwSU4EQdZ+2b4ka/Ptb3g5zQJ/RGSf6qYjR541XntvlqS5mDa254HbENnmP27X9eopbKTdYgyjBj63XAsOY5NaKFQSKdICxTFuC8/TrYD9xWxOqgzhkO/MNJYQqkR0vubgng6OninoFKZGPo/fFAU6CQS0b+8nRGsnD7g00MfWGPoS8YCLYehVSSORMic+Oo58c6lIgxkzCLoWvzmZONqF6RQ89gdQ5fiyHvq8rhzw6EBagBIRn/S8YCfRgJce5jQ5RgK66AiJpOYGKHfRp3CLlD3pO1hz6VTGMnqn1TplFbK6CgrM4oTTBZ7fqD9+BHOWk15tsj+Pcl8Vi9SjiK+XU2tVCePuNQNYF4x2QGD2Ftmul49pF0I=
|