valentina/.travis.yml
Roman Telezhynskyi 0a27af972d Looks like Travis has some troubles with deploy. Trying to switch back to
previous version.

--HG--
branch : develop
2018-03-13 11:04:43 +02:00

107 lines
4.2 KiB
YAML

language: cpp
matrix:
include:
- os: linux
dist: trusty
sudo: required
compiler: clang
env:
- DEPLOY=false
- CCACHE_CPP2=yes
cache:
- ccache
directories:
- '$HOME/.sonar/cache'
- os: osx
compiler: clang
env: DEPLOY=true
osx_image: xcode9
before_install:
- |
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;
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;
else
brew update > /dev/null;
brew install qt5;
chmod -R 755 /usr/local/opt/qt5/*
fi
before_script:
- |
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
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
qmake ../Valentina.pro -r -spec linux-clang CONFIG+=noDebugSymbols CONFIG+=checkWarnings;
else
qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache CONFIG+=checkWarnings CONFIG+=noTests;
fi
script:
- $CXX --version
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
build-wrapper-linux-x86-64 --out-dir ../bw-outputs 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";
cd ..;
sonar-scanner;
else
make -j1;
fi
notifications:
email:
recipients:
- dismine@gmail.com
on_success: change
on_failure: always
before_deploy:
- |
if [[ "$DEPLOY" == "true" ]]; then
../scripts/macfixqtdylibrpath.py $TRAVIS_BUILD_DIR/build/src/app/valentina/bin/Valentina.app;
tar -C $TRAVIS_BUILD_DIR/build/src/app/valentina/bin --exclude "*.DS_Store" -cvzf valentina-osx-${TRAVIS_COMMIT}.tar.gz Valentina.app/;
fi
deploy:
edge:
branch: v1.8.47
provider: bintray
skip_cleanup: true
file: ../share/bintray.json
user: dismine
key:
secure: gpoZl9H6JQP8NAXSUHXx8SDT34G3998Nwa14ymaAbQlmpWbswyoTYSvLj4sMkYhOSiPd+OXUrXX5bbB5xEOnlYMDR4krOez+Hj73KHwAOxGTIDucZ5PweXuqNOQjrSygqwLnjsKyzn8RbazTLHtioR9OMcHZD9Ou3ShIS27IZHLrEfPByhi5GYiTVQwKUUVqzLF/enqpNEK2w96+PeRBjeD3si2bds5tEaj2QY3OgW9V2FjOrdV4GY5v1jHiJgENFXtEEuo7wJtOdf7uDqWJnbA/YRFw8Ait6YKYyqBfWksfjudr9odPyKGasMO4v/CfTPIoXCNzbislNj0YdqMrg1agrfuem5Qdr5lqWNwVArAW5rBKEdZUwDNxkrSxZXEQ9maxaAiQzfB5EyXk+gITxMFAzv+WBfS8nMMG9slMENJ8f+z9PDzCgCQucdmlJjKntwKtrh76Oz7V5z6WoOl1IX7Ia9Hee8xCc33zWWDER12C+K+5sSifK/FBE4EdXi+BvL/J7dyE4rOzYpfim1v9oQtWGw2KSr5dwj4pZUMtUbxi2Te8yzMxm7K85av2TpzaWAyi5Q7hRr92E5DP6Z3YLfF0Ne6AZ/arcqTJRD2f+81VNQ3ZH26kb4SR0G72HwP2xOw3xCyEAGz8HOd17EUo6ScQi9+GYozrCohn/vkiPn0=
dry-run: false
on:
all_branches: true
condition: $DEPLOY = true
addons:
sonarqube:
token:
secure: Et0JMrRcVfmlNs+pwqUY1fJx49/SSwss0NMe46nSv8D6Tnv9zlPZyA8KPmOq3jIc9zsoa40dcrp3eXd3jBZrULSb2gD8KkAJAWuTFmBH7Hu18t8LGEnorh0puHK8S2jV5Ueowig67PF8hh20KjErDo7Wo0FDc14lLxCsm20Jt0WKzHU50aqWxAGY3f5f8po/o/6ClcuqPNfqXy4i93YIjgdsYsN2+PUoCSkm92yE7iA2Ggyx5Np93DajkEd75QtInhcbiP8OmNV0BMCMT41+evSnwgUhmyzzEgICrYwKwij0igsxPWkqiwI/jLC5qAOjp9KZqfK556c3FwsQY8hKEIdGKozXgcDMlBlIivQPF/zeo17LugifXjuie6lhC+e7stresxZSYmLhNFbrcKC98JF1GvBZj6xQnKoqp3+M+JAgP+LskyHVJABLHqbnYG+ubmIsTaTr6CsvRiq/9GoaODJIfkBATkPRb/WvLkPEuoJk3h+mW3oPlUbFVYs+6WPm9/+5WkKcEU7HS2nT1XM94TZh+7Adsd47vLzJ7KQ1vGK6pHChMcAK+MkZshSslvcn4H7is8sFkOSyZdMj/f+dnpTllpmU2AArPPVK6P2bQqGl8n16JY6lBw10KBkodpUd1D6JWXkNQIAyPUGGGjlqeqm1wetfad0hoHqrnQJ7HE0=