2015-04-02 13:31:23 +02:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
|
|
|
|
before_install:
|
2015-04-15 23:17:42 +02:00
|
|
|
# g++4.8.1
|
|
|
|
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
|
2015-04-02 13:31:23 +02:00
|
|
|
- sudo add-apt-repository ppa:ubuntu-sdk-team/ppa -y
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
- sudo apt-get install -y qtbase5-dev libqt5svg5-dev ccache qt5-default qttools5-dev-tools libqt5xmlpatterns5-dev
|
2015-11-26 14:00:43 +01:00
|
|
|
- sudo apt-get install -y libqt5core5 libqt5gui5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5xml5 libqt5xmlpatterns5 xpdf
|
2015-04-02 13:31:23 +02:00
|
|
|
|
2015-04-15 23:17:42 +02:00
|
|
|
install:
|
|
|
|
# g++4.8.1
|
|
|
|
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
|
|
|
|
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi
|
|
|
|
|
2015-04-02 13:31:23 +02:00
|
|
|
before_script:
|
2015-04-15 21:12:42 +02:00
|
|
|
# QTestLib require GUI support for some tests
|
|
|
|
- "export DISPLAY=:99.0"
|
|
|
|
- "sh -e /etc/init.d/xvfb start"
|
2015-04-02 13:31:23 +02:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- which qmake
|
|
|
|
- uname -a
|
|
|
|
- qmake --version
|
2015-11-26 14:00:43 +01:00
|
|
|
- qmake ../Valentina.pro -r CONFIG+=no_ccache
|
2015-04-02 13:31:23 +02:00
|
|
|
|
|
|
|
script:
|
2015-04-15 23:17:42 +02:00
|
|
|
- $CXX --version
|
2015-04-02 13:31:23 +02:00
|
|
|
- make -j$(nproc)
|
2015-04-15 21:12:42 +02:00
|
|
|
- DISPLAY=:99.0 make check
|
2015-04-02 13:31:23 +02:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- dismine@gmail.com
|
2015-04-05 19:15:38 +02:00
|
|
|
- susan.spencer@gmail.com
|
2015-11-26 14:00:43 +01:00
|
|
|
- zhuravska19@gmail.com
|
2015-04-02 13:31:23 +02:00
|
|
|
on_success: change
|
|
|
|
on_failure: always
|