2016-07-25 12:50:22 +02:00
|
|
|
image: gcc
|
2016-07-25 11:26:35 +02:00
|
|
|
pipelines:
|
|
|
|
default:
|
|
|
|
- step:
|
|
|
|
script:
|
|
|
|
- echo "This script runs on all branches that don't have any specific pipeline assigned in 'branches'."
|
|
|
|
branches:
|
|
|
|
develop:
|
|
|
|
- step:
|
|
|
|
script:
|
2016-07-25 12:07:28 +02:00
|
|
|
- cat /etc/*-release
|
2016-07-25 11:26:35 +02:00
|
|
|
- uname -a
|
|
|
|
- grep -i processor /proc/cpuinfo | wc -l
|
|
|
|
- gcc --version
|
2016-07-25 12:50:22 +02:00
|
|
|
- apt-get update # required to install qt
|
2016-07-25 22:18:29 +02:00
|
|
|
- apt-get install -y locales xvfb qtbase5-dev libqt5svg5-dev qt5-default qttools5-dev-tools libqt5xmlpatterns5-dev libqt5core5a libqt5gui5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5xml5 libqt5xmlpatterns5 xpdf
|
2016-07-25 22:06:10 +02:00
|
|
|
- locale
|
2016-07-25 22:28:26 +02:00
|
|
|
- echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
|
2016-07-25 22:06:10 +02:00
|
|
|
- locale-gen "en_US.UTF-8"
|
2016-07-25 22:28:26 +02:00
|
|
|
- update-locale LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8
|
2016-07-25 11:26:35 +02:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- qmake --version
|
|
|
|
- qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache CONFIG+=checkWarnings
|
2016-07-25 13:31:38 +02:00
|
|
|
- make -j$(nproc)
|
2016-07-25 13:15:24 +02:00
|
|
|
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/opt/atlassian/bitbucketci/agent/build/build/src/libs/vpropertyexplorer/bin:/opt/atlassian/bitbucketci/agent/build/build/src/libs/qmuparser/bin"
|
2016-07-25 14:12:09 +02:00
|
|
|
# QTestLib require GUI support for some tests
|
2016-07-25 20:55:23 +02:00
|
|
|
- xvfb-run -a make check
|