Giter Club home page Giter Club logo

traviscitestc's Introduction

TravisCItestC

Build Status codecov

学习Travis CI C语言项目的编译打包过程

用.travis.yml文件控制Travis CI持续集成

例子:

language: c

compiler:
    - gcc
    - clang

script:
    - make && make test
    - ./example

一个编译C的例子

指定编译器gcc和clang,两个编译器都会编译,并显示各自编译的结果,如图:

注意YAML语法:后要加上空格

增加TravisCI编译通过标签

在github主页增加一个编译通过的标签。

增加代码覆盖率测试

C语言可以使用gcov来测试代码覆盖率,网上找到一篇gcov测试原理讲解

traviscitestc's People

Contributors

linkinw avatar

Watchers

 avatar

traviscitestc's Issues

增加单元测试框架

选择一个C语言的单元测试框架,加入makefile文件。方便项目实现极限编程的测试驱动型开发。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.