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:
|
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
|
2020-06-04 18:03:09 +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:
|
2020-06-04 18:03:09 +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
|
2020-01-07 15:19:30 +01:00
|
|
|
osx_image: xcode11
|
2020-11-15 08:57:23 +01:00
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- DEPLOY=true
|
|
|
|
- LEGACY=true
|
|
|
|
osx_image: xcode7.3
|
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;
|
|
|
|
else
|
|
|
|
unset SSL_CERT_FILE;
|
2020-11-15 10:33:25 +01:00
|
|
|
brew untap homebrew/versions;
|
2020-11-15 10:43:52 +01:00
|
|
|
brew update > /dev/null;
|
2020-11-15 08:57:23 +01:00
|
|
|
brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/8e2743e6382fefaabfa37da00633ff801477b53c/qt5.rb;
|
|
|
|
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:
|
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
|
|
|
|
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;
|
2020-11-15 08:57:23 +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:
|
|
|
|
provider: bintray
|
|
|
|
skip_cleanup: true
|
2020-01-31 16:50:03 +01:00
|
|
|
file: "../share/bintray.json"
|
2016-12-16 10:38:47 +01:00
|
|
|
user: dismine
|
|
|
|
key:
|
2020-01-31 16:50:45 +01:00
|
|
|
secure: q9rcswyUyOqHAnxL0FLEQ8tdFkE21kNlv/TUpZgk0MbcsWRhBWaKJVv5kz6ABkjeLMB7c7eS7KfYRui0RFBKHI7ZnpzHBZN4f1aGd/rf9m5qaZdKFFBlpz4tXPHvXOVyXRwOReqFj7brAz6NB+oqJN8HFA4Q1y039yZOaHt28JkwYSDqS5lRvbwegYS8kaJupGZcm8NaNeB8tuXuZ/8DIQpZdVKmBUwpgpPAewCEqYP4z9DUpsmMZ5h63g7mJKm9di91cQr65eS24io6m1ZfAx8M6kTaKwyR5nz8a8bnqR48AAnbNoM8Xj1sgJqnT40DZKPCNr7KL3JSNRglKNgHVMFBOj0v9F5YxsDs8twWuqFVbywB+lNSHDyvGVgmS2+EdwKLQT0YBxYfIL1nh34ed7GffZZmBcAJGfxo8ieAMRgyylSyQIHJ0ZBl6X6DzOvLpvFlcva9yhqZfkx3P/Dgarqklnj3DdvzTDW2vxCT4yVLpMySlBXW2I3s7m8xpOjZbM7eZfMZkwjd/e8IYp8jxdQnxlzNe15mzxSXnZjLz3Rwi1qzhJZyZf4OGVxuQuR9oW+c5q55OOY5hImtZELlJyu1K0zKTd85g0D+WwKj4J30J0QWl1pxZlln59Q5cMmpyQ7sc8zN1WPoWAEyavwPrf4028TpEJqaUw/0cQGg9I4=
|
2016-12-16 10:38:47 +01:00
|
|
|
on:
|
|
|
|
all_branches: true
|
2020-01-31 16:50:03 +01:00
|
|
|
condition: "$DEPLOY = true"
|