Skip to content

richelbilderbeek/travis_qmake_gcc_cpp98_rcpp

Repository files navigation

travis_qmake_gcc_cpp98_rcpp

Branch Travis CI logo
master Build Status
develop Build Status

This GitHub is part of

The goal of this project is to have a clean Travis CI build, with specs:

  • Build system: qmake
  • C++ compiler: gcc
  • C++ version: C++98
  • Libraries: STL and Rcpp
  • Code coverage: none
  • Source: one single file, main.cpp

Less complex builds:

Architecture

This setup allows for independent C++ and R development. The C++ function do_magic_cpp is used by both the C++ project and the R package.

The C++ project

  • domagic.pro: qmake project file
  • main.cpp: contains the main function
  • src/do_magic_cpp.h: header file with the do_magic_cpp function declaration
  • src/do_magic_cpp.cpp: source file with the do_magic_cpp function definition

Note that the C++ code is not tested directly. The R package does this.

The R package

  • domagic.Rproj: RStudio project file
  • R/do_magic_r.R: defines the do_magic_r function, which calls the do_magic_cpp function
  • /tests/testthat/test-do_magic.R: tests the do_magic_r function

About

Minimal project that uses qmake, GCC, C++98, Rcpp (and thus R code) and is tested by Travis CI

Resources

License

Stars

Watchers

Forks

Packages

No packages published