2015-04-02 13:31:23 +02:00
|
|
|
language: cpp
|
2021-05-01 18:54:48 +02:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- secure: Zo+BbyV3sgNmKHwWvn7cCt3leXCLGbE9rSrAYoCrl22OEDZjPj7KeGzQ/59xLosE5v8PA5MV8KceH7aQB9GoIbDt6sHLw5mws13VXmy5HWtM7yhk2RpNnn1gTZIfEz33QGYuPG1geapTcZtZfaVKFU04PMkvk3f7zxA1HuS6zGRgzrNv1AmcpuOGH4LIGxbk3Z1S6xGcUMj/z9calyLlmPTOfbDLJWChU11FMVmvdTzyeDLE0oQZ5IkmsowluCfDHARfIijeRuPiuU8RzJptYEIzcWvpQ6gfDb4qDWndA9BgPDkN2aTmPL5/TA/S9zfs8BKjo07sg0TaVbTboPisyS/gGDf3SBYxlAS9B95KKdRzGGD41ZYe+cHod5tgWUt5gO/Obq2MPY/GltSwuq5KEsR+R/pKVLby/k7+R5oCO8avXJPL5HBgn46ZehEzpw0I8LFQ/ed+dLqykrxaSiA2/zHAkHSeVZptzegoCF5xeDf6T/rJFNqxr1BV3kVLPiXW90z0m63Hv2K6rz8LmBUNTQcR/mrLpkpdbQ8UQ/et30o7CE2GcJLLzUDNcjxYfA1fe66oR9L+euqyBtZc8dNuzy1iIaUOLazGWYkdlUpiYnGvWrxv6BUwzAJYpiXjWELtcTVUGMjMBpkvAmwV1FjZN45isX2iHGz5XhoVDrjbE5c=
|
2019-02-24 07:12:04 +01:00
|
|
|
jobs:
|
2016-10-31 18:14:49 +01:00
|
|
|
include:
|
2020-01-31 16:50:03 +01:00
|
|
|
- stage: main test
|
2019-02-24 07:12:04 +01:00
|
|
|
os: linux
|
2019-04-05 11:11:16 +02:00
|
|
|
dist: xenial
|
2016-12-16 10:38:47 +01:00
|
|
|
compiler: clang
|
2020-01-31 16:50:03 +01:00
|
|
|
env:
|
2017-05-10 16:22:21 +02:00
|
|
|
- DEPLOY=false
|
|
|
|
- CCACHE_CPP2=yes
|
2019-02-24 07:12:04 +01:00
|
|
|
- RUN_TESTS=true
|
2021-05-01 18:54:48 +02:00
|
|
|
cache:
|
|
|
|
ccache: true
|
|
|
|
directories:
|
|
|
|
- "$HOME/.sonar/cache"
|
2020-01-20 12:50:37 +01:00
|
|
|
- os: linux
|
|
|
|
dist: bionic
|
|
|
|
compiler: clang
|
2020-01-31 16:50:03 +01:00
|
|
|
env:
|
2020-01-20 12:50:37 +01:00
|
|
|
- DEPLOY=false
|
|
|
|
- CCACHE_CPP2=yes
|
|
|
|
- RUN_TESTS=true
|
|
|
|
cache:
|
2021-05-01 18:54:48 +02:00
|
|
|
ccache: true
|
|
|
|
directories:
|
|
|
|
- "$HOME/.sonar/cache"
|
2016-12-16 10:38:47 +01:00
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
2020-01-31 16:50:03 +01:00
|
|
|
env:
|
2018-12-11 09:41:45 +01:00
|
|
|
- DEPLOY=true
|
2020-11-15 08:57:23 +01:00
|
|
|
- LEGACY=false
|
2021-09-13 17:34:05 +02:00
|
|
|
- XCODE=xcode12_2
|
|
|
|
osx_image: xcode12.2
|
2021-09-13 16:57:00 +02:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- "$HOME/Library/Caches/Homebrew"
|
|
|
|
- "/usr/local/Homebrew"
|
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- DEPLOY=true
|
|
|
|
- LEGACY=false
|
|
|
|
- XCODE=xcode11
|
2020-01-07 15:19:30 +01:00
|
|
|
osx_image: xcode11
|
2020-11-16 09:46:14 +01:00
|
|
|
cache:
|
|
|
|
directories:
|
2021-05-01 18:54:48 +02:00
|
|
|
- "$HOME/Library/Caches/Homebrew"
|
|
|
|
- "/usr/local/Homebrew"
|
2020-11-15 08:57:23 +01:00
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- DEPLOY=true
|
|
|
|
- LEGACY=true
|
2021-09-13 16:57:00 +02:00
|
|
|
- XCODE=xcode8
|
2020-11-16 12:10:05 +01:00
|
|
|
osx_image: xcode8
|
2020-11-16 09:46:14 +01:00
|
|
|
cache:
|
|
|
|
directories:
|
2021-05-01 18:54:48 +02:00
|
|
|
- "$HOME/Library/Caches/Homebrew"
|
|
|
|
- "/usr/local/Homebrew"
|
2020-11-16 09:46:14 +01:00
|
|
|
before_cache:
|
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew cleanup; fi
|
|
|
|
# Credit https://discourse.brew.sh/t/best-practice-for-homebrew-on-travis-brew-update-is-5min-to-build-time/5215/9
|
|
|
|
# Cache only .git files under "/usr/local/Homebrew" so "brew update" does not take 5min every build
|
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then find /usr/local/Homebrew \! -regex ".+\.git.+" -delete; fi
|
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
|
2020-11-15 08:57:23 +01:00
|
|
|
if [[ "$LEGACY" = false ]]; then
|
2020-11-15 10:43:52 +01:00
|
|
|
brew update > /dev/null;
|
2020-11-15 08:57:23 +01:00
|
|
|
brew install qt5;
|
2020-11-16 12:10:05 +01:00
|
|
|
chmod -R 755 /usr/local/opt/qt5/*
|
2020-11-15 08:57:23 +01:00
|
|
|
else
|
|
|
|
unset SSL_CERT_FILE;
|
2021-05-02 17:33:26 +02:00
|
|
|
HOMEBREW_NO_AUTO_UPDATE=1 brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/1218041ffba3ff4b64d109e64a9a867f8fe394c1/qt.rb;
|
2020-11-16 11:52:51 +01:00
|
|
|
brew link qt --force;
|
2021-05-02 16:26:52 +02:00
|
|
|
chmod -R 755 /usr/local/opt/qt/*;
|
|
|
|
HOMEBREW_NO_AUTO_UPDATE=1 brew install python3;
|
2020-11-15 08:57:23 +01:00
|
|
|
fi
|
2021-05-01 18:54:48 +02:00
|
|
|
python3 --version;
|
2021-05-02 15:24:59 +02:00
|
|
|
pip3 install dropbox;
|
2016-12-16 10:38:47 +01:00
|
|
|
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
|
2020-12-26 18:44:55 +01:00
|
|
|
if [[ "$LEGACY" = false ]]; then
|
|
|
|
qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache CONFIG+=checkWarnings CONFIG+=noTests;
|
|
|
|
else
|
|
|
|
qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache CONFIG+=noTests;
|
|
|
|
fi
|
2016-12-16 10:55:59 +01:00
|
|
|
fi
|
2015-04-02 13:31:23 +02:00
|
|
|
script:
|
2020-01-31 16:50:03 +01:00
|
|
|
- "$CXX --version"
|
2016-12-16 10:38:47 +01:00
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
2020-10-24 10:39:32 +02:00
|
|
|
make -j$(nproc);
|
2019-02-24 07:12:04 +01:00
|
|
|
if [[ "$RUN_TESTS" == "true" ]]; then
|
|
|
|
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";
|
|
|
|
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
|
2021-05-01 18:54:48 +02:00
|
|
|
after_success:
|
2021-05-03 19:30:36 +02:00
|
|
|
- ../scripts/travis-deploy.sh
|
|
|
|
|