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
|
2017-05-10 16:22:21 +02:00
|
|
|
env:
|
|
|
|
- DEPLOY=false
|
|
|
|
- CCACHE_CPP2=yes
|
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
|
2018-03-12 18:05:05 +01:00
|
|
|
osx_image: xcode9
|
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;
|
2017-05-10 16:22:21 +02:00
|
|
|
wget https://launchpad.net/ubuntu/+archive/primary/+files/ccache_3.3.4-1_amd64.deb;
|
|
|
|
sudo dpkg -i ccache_3.3.4-1_amd64.deb;
|
2016-12-16 10:38:47 +01:00
|
|
|
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
|
2017-05-10 11:02:14 +02:00
|
|
|
qmake ../Valentina.pro -r -spec linux-clang CONFIG+=noDebugSymbols CONFIG+=checkWarnings;
|
2016-12-16 10:55:59 +01:00
|
|
|
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-05-12 08:10:53 +02: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";
|
2017-05-12 08:10:53 +02:00
|
|
|
cd ..;
|
|
|
|
sonar-scanner;
|
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
|
|
|
|
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;
|
2017-11-25 15:32:07 +01:00
|
|
|
tar -C $TRAVIS_BUILD_DIR/build/src/app/valentina/bin --exclude "*.DS_Store" -cvzf valentina-osx-${TRAVIS_COMMIT}.tar.gz Valentina.app/;
|
2016-12-16 10:38:47 +01:00
|
|
|
fi
|
|
|
|
deploy:
|
2018-03-14 18:58:46 +01:00
|
|
|
edge:
|
|
|
|
branch: v1.8.47
|
2016-12-16 10:38:47 +01:00
|
|
|
provider: bintray
|
|
|
|
skip_cleanup: true
|
|
|
|
file: ../share/bintray.json
|
|
|
|
user: dismine
|
|
|
|
key:
|
2018-03-14 18:14:54 +01:00
|
|
|
secure: uffn23TzTrsW053VN7HbcURs6w16zRbM1RUUF579uRMOu+DxwiFQlOVcNifzK/CAARDSgi0xvNzGPlePXBXTkzA5r3KSWnHGbw0DJTllFIBNwkWPoDzCwAONK3ZtCq+FI3iJy+fLh2rhqXpJXD713O09PmO+TTiNBRdLCyO5BP1ndykLFdhdCR0knDpyaIYYLGvGS4SR4/LqtuHniDT9ydkhhkcmms/Bw+k8hcdrDhhk1v6jPv4qAm8QfydDeh+X9AVNrJjB0Oz2rtvYpBdY6hqVnrb77V1mdc4dU3WKxw+IkMYTTH1oq6ywdMv/Y+S9sch5h/af6O8su4ipGEp240cc7sVB+k4FE9fDVqXuOgl0LLFVqf2XbzRFAQbShmxIJ64XS43TM7s98qTCacAaiMfQvKPNSHCmCKRM3e5f5ASBcwn6UtFqdREZO/lsl+Bgdah3KCn8hw9PBTloLSnRpUQGheh/xnWwV5LTHVlSDu0FiyC6ncTI+xghNSDJWAhH2dZNX+yIjVolJ27/5qS5m3BG1x0yMGEP5Fok15sX2tP70s8FklqNtn2+xqUGEz+YJMGW0GbmFuFFhnCu2ls0BhyT68Pvz4YQWvG30SaO8EkZtYx7RNy3muuq1O2TXcctcK8xX7DNJTlFFCzCDSz6xqiO4IiQIQE1F2Td6Hru8cs=
|
2016-12-16 10:38:47 +01:00
|
|
|
dry-run: false
|
|
|
|
on:
|
|
|
|
all_branches: true
|
|
|
|
condition: $DEPLOY = true
|
2017-05-12 08:10:53 +02:00
|
|
|
addons:
|
2017-07-07 17:09:15 +02:00
|
|
|
sonarqube:
|
2017-05-12 08:10:53 +02:00
|
|
|
token:
|
2017-07-07 16:20:27 +02:00
|
|
|
secure: Et0JMrRcVfmlNs+pwqUY1fJx49/SSwss0NMe46nSv8D6Tnv9zlPZyA8KPmOq3jIc9zsoa40dcrp3eXd3jBZrULSb2gD8KkAJAWuTFmBH7Hu18t8LGEnorh0puHK8S2jV5Ueowig67PF8hh20KjErDo7Wo0FDc14lLxCsm20Jt0WKzHU50aqWxAGY3f5f8po/o/6ClcuqPNfqXy4i93YIjgdsYsN2+PUoCSkm92yE7iA2Ggyx5Np93DajkEd75QtInhcbiP8OmNV0BMCMT41+evSnwgUhmyzzEgICrYwKwij0igsxPWkqiwI/jLC5qAOjp9KZqfK556c3FwsQY8hKEIdGKozXgcDMlBlIivQPF/zeo17LugifXjuie6lhC+e7stresxZSYmLhNFbrcKC98JF1GvBZj6xQnKoqp3+M+JAgP+LskyHVJABLHqbnYG+ubmIsTaTr6CsvRiq/9GoaODJIfkBATkPRb/WvLkPEuoJk3h+mW3oPlUbFVYs+6WPm9/+5WkKcEU7HS2nT1XM94TZh+7Adsd47vLzJ7KQ1vGK6pHChMcAK+MkZshSslvcn4H7is8sFkOSyZdMj/f+dnpTllpmU2AArPPVK6P2bQqGl8n16JY6lBw10KBkodpUd1D6JWXkNQIAyPUGGGjlqeqm1wetfad0hoHqrnQJ7HE0=
|