2015-04-02 13:31:23 +02:00
|
|
|
language: cpp
|
2019-02-24 07:12:04 +01:00
|
|
|
jobs:
|
2016-10-31 18:14:49 +01:00
|
|
|
include:
|
2019-02-24 07:12:04 +01:00
|
|
|
- stage: "main test"
|
|
|
|
os: linux
|
2019-04-05 11:11:16 +02:00
|
|
|
dist: xenial
|
2016-12-16 10:38:47 +01:00
|
|
|
sudo: required
|
|
|
|
compiler: clang
|
2017-05-10 16:22:21 +02:00
|
|
|
env:
|
|
|
|
- DEPLOY=false
|
|
|
|
- CCACHE_CPP2=yes
|
2019-02-24 07:12:04 +01:00
|
|
|
- RUN_TESTS=true
|
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
|
2018-12-11 09:41:45 +01:00
|
|
|
env:
|
|
|
|
- DEPLOY=true
|
|
|
|
- LEGACY=false
|
|
|
|
osx_image: xcode10
|
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- DEPLOY=true
|
|
|
|
- LEGACY=true
|
2018-12-11 10:40:47 +01:00
|
|
|
osx_image: xcode8
|
2019-02-24 07:12:04 +01:00
|
|
|
- stage: "sonarcloud"
|
|
|
|
os: linux
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- DEPLOY=false
|
|
|
|
- CCACHE_CPP2=yes
|
|
|
|
- RUN_TESTS=false
|
|
|
|
cache:
|
|
|
|
- ccache
|
|
|
|
directories:
|
|
|
|
- '$HOME/.sonar/cache'
|
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;
|
2018-12-11 09:41:45 +01:00
|
|
|
if [[ "$LEGACY" = false ]]; then
|
|
|
|
brew install qt5;
|
|
|
|
else
|
2018-12-11 12:26:22 +01:00
|
|
|
unset SSL_CERT_FILE;
|
2019-02-16 12:52:52 +01:00
|
|
|
brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/20544ac8e68ef3523f92e15f432bbaf9a6aa2c22/qt5.rb;
|
2018-12-11 09:41:45 +01:00
|
|
|
fi
|
2016-12-16 10:38:47 +01:00
|
|
|
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
|
2019-02-24 07:12:04 +01:00
|
|
|
if [[ "$RUN_TESTS" == "true" ]]; then
|
|
|
|
qmake ../Valentina.pro -r -spec linux-clang CONFIG+=noDebugSymbols CONFIG+=checkWarnings;
|
|
|
|
else
|
|
|
|
qmake ../Valentina.pro -r -spec linux-clang CONFIG+=noDebugSymbols CONFIG+=checkWarnings CONFIG+=noTests;
|
|
|
|
fi
|
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
|
2019-02-24 07:12:04 +01:00
|
|
|
if [[ "$RUN_TESTS" == "true" ]]; then
|
|
|
|
make -j$(nproc);
|
|
|
|
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";
|
|
|
|
else
|
|
|
|
build-wrapper-linux-x86-64 --out-dir ../bw-outputs make -j$(nproc);
|
|
|
|
cd ..;
|
|
|
|
sonar-scanner;
|
|
|
|
fi
|
2016-12-16 10:38:47 +01:00
|
|
|
else
|
|
|
|
make -j1;
|
2018-12-17 18:09:10 +01:00
|
|
|
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;
|
2018-12-11 09:41:45 +01:00
|
|
|
if [[ "$LEGACY" = false ]]; then
|
|
|
|
tar -C $TRAVIS_BUILD_DIR/build/src/app/valentina/bin --exclude "*.DS_Store" -cvzf valentina-osx-${TRAVIS_COMMIT}.tar.gz Valentina.app/;
|
|
|
|
else
|
|
|
|
tar -C $TRAVIS_BUILD_DIR/build/src/app/valentina/bin --exclude "*.DS_Store" -cvzf valentina-osx-${TRAVIS_COMMIT}-legacy.tar.gz Valentina.app/;
|
|
|
|
fi
|
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-12-11 14:12:46 +01:00
|
|
|
secure: "OQoNH6agiZaDC0HhEHGkBT/6xOrQ07tY2S8AL85y3+QT2/EMsEUPz60dHAF13kKkPHbzkPHE4gBf5hxCnhGsXzu5vktkAFX/CBUZ4Qv1ca0gIsZqq4zNdFt8Uu/1gKMZ7L/6iwwCi2z+/L/3glzzMuHSZX2Y5kpiIcsZWrFo3F5V3998oEw7ZEj/Ms1cGOxg+EaqkX9BeqtlvWd2P/6ocgbHTzAwFVmsM2v2YkIYu7RFUKFNuIELgQLrBq1+q9vJXrSAjai7HflPKwUTjh1izN2lVogle1KlVExJID/tF9BQSgpDSgjJw79JtLnJb5lvFzRHfnnyl0OAbPpq6faGQMGwRoCUL6DRzNtO6OPxVUtQRn+0gXdzVUdF38jhXv7MZ5k7Ctf4xmOhiDPsf/JSoyvpdbg841cj/21qBuMWy12ntvfbdl2RmOV1zBNDHKXOQya4d2uoLBpIfD+7P87CPHwcyzuqaWb+8BXKTOdUKwkdDVUU+xz+K6gwFzmfNofhStTueioKQb77GvhGVMRvn7+/2b2zY8skFcGGeQdkJWXL7dyxmJ8L5SiwwGuhBy8nZWxGR7T0hoR9NFNVL43yFGqoqAI+VdVnbCp4TmcuI6YYHxD73tFI/ieFWXdakiBZcMW7VVJ07DsMawpMOHKXd/uxOoIR/N237RREToLMVT4="
|
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:
|
2019-02-16 12:42:31 +01:00
|
|
|
sonarcloud:
|
2017-05-12 08:10:53 +02:00
|
|
|
token:
|
2018-12-11 13:05:46 +01:00
|
|
|
secure: "re+Ddh0uhun8Sj4ibGR4D9wTQlIMyl3UaXvoWtn4TTkuKQpiOPjbqDbNRuPLkwjFk+5GqVKeCMkBBPx7o3aJ6dYaurJpNpVKLG3e3cMWmCEqP3O38JRVa8EZQ1R0hIz6eJS2BNAwF8aOR5zHmQQ2lPrKQzawMsry4TK22jpxNs8g4WEOrxEVVH/oJh8q/cB/k3nKUvy47EHVQ/jLj6Sq5821Ktm3KjAGsw/wuYWy7GTG1tKL4/N7C0IeUsRu3022kN8w1LJf7WXXLGDON3k+Ui6G4nqwbFH+Jftx3oMqY4hauz4PXUx6Nx3zCvv6BqC83qm8p5yovuHy1IOqPbKiaDPDp9VmbQxtLVe1me6Z0smNPoqmxwtUvub+cKAymZ5SVfhpZT1PcIB0xuHPi/FOWvKoqXhiyBoQxF8cGerSfCruWJKChQgY0ysTbIRqT4MM7seYib7AW68QCle61/q6vPjEm5tdCzvmJvZURtb+Q4qVLzuOEL/QqTN1lNO2b4HBMPOGj0MGG4dMYZ8XTEITFnETeF7O2wZ+HvvLi/TExI+Wfhm28mofXBAHwvdSXqNTSynPfC1H26xHf09ApumjixbZBcZUaaDc6K2ne3i/DU/ZgoovOIyduxmF/HFp836yKIvcJr+18j42rcUyTq2qSOQHdsttM4fy7ZnK8b7sQc8="
|