Added support for Coveralls service during CI
This commit is contained in:
commit
d3253cd354
36
.travis.yml
36
.travis.yml
|
@ -1,36 +1,10 @@
|
|||
language: cpp
|
||||
compiler: gcc
|
||||
sudo: required
|
||||
|
||||
services:
|
||||
- docker
|
||||
|
||||
before_install:
|
||||
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
||||
- sudo add-apt-repository ppa:beineri/opt-qt551 -y
|
||||
- sudo apt-get update
|
||||
|
||||
install:
|
||||
- echo `pwd`
|
||||
- export PROJECT_DIR=`pwd`
|
||||
- echo "Installing Qt and GCC"
|
||||
- sudo apt-get -y install qt-latest gcc-5 g++-5
|
||||
- echo "Moving to /tmp"
|
||||
- cd /tmp
|
||||
- echo "Installing CMake"
|
||||
- wget --no-check-certificate https://cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz
|
||||
- tar xf cmake-3.3.2-Linux-x86_64.tar.gz
|
||||
- export CMAKE_EXECUTABLE=/tmp/cmake-3.3.2-Linux-x86_64/bin/cmake
|
||||
- cd -
|
||||
|
||||
before_script:
|
||||
- export CXX=g++-5
|
||||
- export CC=gcc-5
|
||||
- source /opt/qt55/bin/qt55-env.sh
|
||||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
- sleep 3 # give xvfb some time to start
|
||||
- docker pull filcuc/dotherside
|
||||
|
||||
script:
|
||||
- mkdir build
|
||||
- cd build
|
||||
- $CMAKE_EXECUTABLE ..
|
||||
- make
|
||||
- ./test/TestDynamicQObject
|
||||
- docker run -v `pwd`:/root/dotherside filcuc/dotherside /bin/bash /root/build.sh ${COVERALLS_REPO_TOKEN}
|
||||
|
|
|
@ -1,6 +1,25 @@
|
|||
cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
# Add Coverage option
|
||||
option(ENABLE_COVERAGE "Enable coverage" OFF)
|
||||
|
||||
# Add additional source path for cmake
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake/)
|
||||
|
||||
# Add strict warning checking for C++
|
||||
if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-long-long -pedantic")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-long-long -pedantic")
|
||||
endif()
|
||||
|
||||
if (ENABLE_COVERAGE)
|
||||
message(STATUS "Enabling coverage")
|
||||
set(CMAKE_BUILD_TYPE Debug)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")
|
||||
endif()
|
||||
|
||||
# Add additional source path for cmake
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake/)
|
||||
|
||||
add_subdirectory(lib)
|
||||
add_subdirectory(test)
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
[![License](https://img.shields.io/badge/license-LGPL-green.svg)](https://github.com/filcuc/DOtherSide/blob/master/LICENSE)
|
||||
[![Build Status](https://travis-ci.org/filcuc/DOtherSide.svg?branch=master)](https://travis-ci.org/filcuc/DOtherSide)
|
||||
[![Build status](https://ci.appveyor.com/api/projects/status/ufufhtv2h507sd96/branch/master?svg=true)](https://ci.appveyor.com/project/filcuc/dotherside/branch/master)
|
||||
[![Coverage Status](https://coveralls.io/repos/github/filcuc/DOtherSide/badge.svg?branch=HEAD)](https://coveralls.io/github/filcuc/DOtherSide?branch=HEAD)
|
||||
|
||||
C language library for creating bindings for the Qt QML language.
|
||||
|
||||
|
@ -22,7 +23,7 @@ The following features are implementable from a binding language
|
|||
Currently we provide the prebuilt binaries for windows through the
|
||||
github [releases](https://github.com/filcuc/DOtherSide/releases) page
|
||||
|
||||
###Linux
|
||||
###Linux
|
||||
Currently we provide the prebuilt binaries for the following
|
||||
Linux distributions through the [OpenSUSE OBS service](https://build.opensuse.org/package/show/home:filcuc/DOtherSide)
|
||||
* ```Archlinux``` : [here](http://software.opensuse.org/download.html?project=home%3Afilcuc&package=DOtherSide)
|
||||
|
|
|
@ -4,7 +4,6 @@ set(CMAKE_AUTOMOC ON)
|
|||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
|
||||
include_directories(${CMAKE_SOURCE_DIR}/lib/include ${CMAKE_SOURCE_DIR}/lib/include/Qt)
|
||||
|
||||
find_package(Qt5Core REQUIRED)
|
||||
|
|
Loading…
Reference in New Issue