From ab3c60fe03adffa295755f2d2d62a4ddc8c2a35d Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 2 Apr 2015 14:31:23 +0300 Subject: [PATCH] travis.yml. Added support for "make check", run tests. --HG-- branch : develop --- .travis.yml | 33 ++++++++++++++++++++++++ src/test/ValentinaTest/ValentinaTest.pro | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..234c75eed --- /dev/null +++ b/.travis.yml @@ -0,0 +1,33 @@ +language: cpp + +os: + - linux + +compiler: + - gcc + - clang + +before_install: + - 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 + - sudo apt-get install -y libqt5core5a libqt5gui5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5xml5 libqt5xmlpatterns5 libstdc++6 xpdf + +before_script: + - mkdir build + - cd build + - which qmake + - uname -a + - qmake --version + - qmake ../Valentina.pro -r + +script: + - make -j$(nproc) + - make check + +notifications: + email: + recipients: + - dismine@gmail.com + on_success: change + on_failure: always diff --git a/src/test/ValentinaTest/ValentinaTest.pro b/src/test/ValentinaTest/ValentinaTest.pro index 94ad3436e..6dd9131f3 100644 --- a/src/test/ValentinaTest/ValentinaTest.pro +++ b/src/test/ValentinaTest/ValentinaTest.pro @@ -20,6 +20,8 @@ CONFIG -= debug_and_release debug_and_release_target # We use C++11 standard CONFIG += c++11 +CONFIG += testcase + DEFINES += SRCDIR=\\\"$$PWD/\\\" SOURCES += \