mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Added code coverage badge
This commit is contained in:
		
							
								
								
									
										10
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								.travis.yml
									
									
									
									
									
								
							| @@ -2,5 +2,11 @@ language: c++ | ||||
| compiler: | ||||
|   - gcc | ||||
|   - clang | ||||
| before_script: cmake . | ||||
| script: make && make test | ||||
| before_install: | ||||
|   - sudo pip install cpp-coveralls | ||||
| before_script: | ||||
|   - cmake -DCOVERAGE=true . | ||||
| script: | ||||
|   - make && make test | ||||
| after_success: | ||||
|   - coveralls --include include --include src --gcov-options '\-lp' | ||||
| @@ -11,5 +11,10 @@ if(MSVC) | ||||
| 	add_definitions(-D_CRT_SECURE_NO_WARNINGS -W4) | ||||
| endif() | ||||
|  | ||||
| if(${COVERAGE}) | ||||
| 	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -coverage") | ||||
| 	set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -coverage") | ||||
| endif() | ||||
|  | ||||
| add_subdirectory(src) | ||||
| add_subdirectory(test) | ||||
| @@ -1,7 +1,7 @@ | ||||
| Arduino JSON library | ||||
| ==================== | ||||
|  | ||||
| [](https://travis-ci.org/bblanchon/ArduinoJson) | ||||
| [](https://travis-ci.org/bblanchon/ArduinoJson) [](https://coveralls.io/r/bblanchon/ArduinoJson?branch=master) | ||||
|  | ||||
| *An elegant and efficient JSON library for embedded systems.* | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user