wiki:TravisCoverals

Version 1 (modified by Antony Polukhin, 8 years ago) ( diff )

--

THIS PAGE IS NOT FINISHED YET

We'll be adding TravisCI and Coveralss integration to a Boost library. Let's take a Boost.LexicalCast as an example. At the end we'll get something like this.

TravisCI integration

Travis requires some access permissions to the repository that are usually provided by Boostorg admins. However bothering admins is actually not required:

  • go to the Boost project page (in our example it would be https://github.com/boostorg/lexical_cast)
  • press the "Fork" button at the top right corner
  • now you have a copy of the boost project (in our example it is https://github.com/apolukhin/lexical_cast). Go to the https://travis-ci.org/profile/ and enable builds for the forked project.
  • clone the original boostorg repo or use an existing clone. Change directory to the clone folder (cd boost_maintain/boost/libs/lexical_cast/)
  • add our forked repo as another remote host for default push: git remote set-url --add origin git@github.com:apolukhin/lexical_cast.git. If everything is right, you'll see something like this if you execute git remote -v:
    origin	git@github.com:boostorg/lexical_cast.git (fetch)
    origin	git@github.com:boostorg/lexical_cast.git (push)
    origin	git@github.com:apolukhin/lexical_cast.git (push)
    
  • now add the .travis.yml file, set PROJECT_TO_TEST in it to the library name, tune the README.md and commit changes:
    cp ../variant/.travis.yml ./
    sed -i 's/PROJECT_TO_TEST=.*/PROJECT_TO_TEST=lexical_cast/g' .travis.yml
    git add .travis.yml
    
    cp ../variant/README.md ./
    sed -i 's/variant/lexical_cast/g' README.md
    sed -i 's/apolukhin/<your login>/g' README.md
    gedit README.md
    git add README.md
    
    
Note: See TracWiki for help on using the wiki.