1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00
falkonOfficial/.travis.yml

89 lines
3.4 KiB
YAML
Raw Normal View History

2016-01-16 19:51:39 +01:00
sudo: required
dist: trusty
2015-01-27 12:29:17 +01:00
language: cpp
2017-03-16 12:27:12 +01:00
cache: ccache
2015-01-27 12:29:17 +01:00
2017-03-17 20:12:23 +01:00
matrix:
include:
- os: osx
osx_image: xcode8.2
2015-01-27 12:29:17 +01:00
env:
2017-01-25 11:29:00 +01:00
- QT=qt58
2015-01-27 12:29:17 +01:00
before_install:
2017-03-17 20:12:23 +01:00
- export QZ_VER=2.1.99
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start;
fi
2015-01-27 12:29:17 +01:00
install:
2017-03-17 20:12:23 +01:00
- export QZ_DIR=$PWD
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get -qq update;
sudo apt-get -qq install libssl-dev pkg-config libxcb-util0-dev;
if [[ "$QT" == "qt58" ]]; then
sudo apt-add-repository -y ppa:beineri/opt-qt58-trusty;
sudo apt-get update -qq;
sudo apt-get install -qq qt58tools qt58script qt58webengine qt58webchannel qt58declarative qt58x11extras;
fi
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
echo "Calling brew update...";
brew update;
brew install ccache;
PATH="/usr/local/opt/ccache/libexec:$PATH";
2017-03-17 20:12:23 +01:00
if [[ "$QT" == "qt58" ]]; then
QT_VER=5.8;
export QTDIR="$HOME/Qt/$QT_VER/clang_64";
brew outdated openssl || brew upgrade openssl;
QT_INSTALLER_FILE_NAME=qt-opensource-mac-x64-clang-$QT_VER.0;
wget "http://download.qt.io/official_releases/qt/$QT_VER/$QT_VER.0/$QT_INSTALLER_FILE_NAME.dmg";
hdiutil attach -noverify $QT_INSTALLER_FILE_NAME.dmg;
QT_INSTALLER=/Volumes/$QT_INSTALLER_FILE_NAME/$QT_INSTALLER_FILE_NAME.app/Contents/MacOS/$QT_INSTALLER_FILE_NAME;
echo "Silently installing Qt...";
travis_wait $QT_INSTALLER --script $QZ_DIR/mac/qt-mac-silent-install.qs;
2017-03-17 20:12:23 +01:00
fi
fi
2015-01-27 12:29:17 +01:00
script:
- QMAKE="qmake"
2017-03-17 20:12:23 +01:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
CXXFLAGS="-Wextra -Werror";
if [[ "$QT" == "qt58" ]]; then QMAKE="/opt/qt58/bin/qmake"; fi
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
MACDEPLOYQT="macdeployqt";
CXXFLAGS="-Wextra -Werror -Wno-inconsistent-missing-override -Wno-deprecated-declarations";
if [[ "$QT" == "qt58" ]]; then
MACDEPLOYQT=$QTDIR/bin/macdeployqt;
QMAKE=$QTDIR/bin/qmake;
fi
fi
- $QMAKE QMAKE_CXXFLAGS+="$CXXFLAGS"
- make -j2 CC=$CC CXX=$CXX || exit 1
2017-03-17 20:12:23 +01:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cp -v bin/libQupZilla*.dylib tests/autotests;
fi
- cd scripts && ./run_tests.sh $QMAKE
- ccache --show-stats
2017-03-17 20:12:23 +01:00
before_deploy:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cd $QZ_DIR;
make bundle;
2017-03-17 20:12:23 +01:00
mv bin/QupZilla.dmg bin/QupZilla-${QZ_VER}.dmg;
fi
deploy:
provider: releases
api_key:
secure: "bGGHyeMXF3nrFIaJCzA5zicH3TfdcMNY6+DT+84veBoCAsBMIjp+1t//mkEBnyAYZHKV/6XDhgztwinX1yEylvOeXxQXG5J0fYj96UzZmjBY+QmgDc31XgVeKKIbEi0Ab2bkgW3qHyQJ5ao/lZwSPCt1stOnjz0WuGgrjGWoAgEoHBXzRlsGzU2LrF/bXnmjyPL/qe7AaV0neE9mD+FmeQwiBPoP+/cQCyz5veOdjuzCy4I57HLCvNH4y28z1p6qotS+V1jGRj8PgMWWQP/VXVp9glTV0+gGkOLKL91SPKvLkS76f5bgn6K3+vdDASf+ZCNajIsh1YpwiabX4tQKwnCd80Ps9PR5dXcQVPMBRy1lFr6u2ps0ZTTfiBpI6vqyvLtyv2QbrfGZfT5bWtwdqpSRPJhp6b/ieHHduuRkZ0aU3JuTpLeoob+rLlkvYQmpvmDgyTx44/q+UOOetkoSCD276sMxYxsd3DJKyeG320UcQvwU+dR8uv9NDdv9wpUi13mfGqaRdcSXXgUQWpZlzCGvQYwLozcNnFfbtyrY9BlJsH7Sf97b3313qHO1lrz92z4IhagY1eQqyTwUrtdH8VeeWNx3INdnd7/u1bSdTSLerzMOG/xds96XW/kVbB1SO8bG9IEel7kC5oTiEQfWXAvFw54P6F3eRjDCZvXGaZA="
file: $QZ_DIR/bin/QupZilla-$QZ_VER.dmg
skip_cleanup: true
on:
tags: true
condition: "$TRAVIS_OS_NAME = osx"