1
0
mirror of https://github.com/albfan/bash-ini-parser.git synced 2025-04-25 09:42:31 +03:00

Add continuous integration

This commit is contained in:
albfan 2016-08-30 14:51:29 +02:00
parent d73cdd267d
commit f589bc795d
2 changed files with 16 additions and 2 deletions

View File

@ -7,6 +7,20 @@ before_install:
script: cd t && make script: cd t && make
env:
- COVERAGE=no
- COVERAGE=yes COV_PROGRAM="bashcov -r coveralls:Coveralls::SimpleCov::Formatter -r codecov:SimpleCov::Formatter::Codecov -r --"
before_script:
- git clone https://github.com/albfan/bashcov.git
- cd bashcov/
- gem build bashcov.gemspec
- gem install bashcov-1.2.1.gem
- cd ..
- rm -rf bashcov
- gem install codecov
- gem install codeclimate-test-reporter
- export PATH=$PATH:$PWD
script: script:
- ./autogen.sh - ./autogen.sh
- cd t - cd t

View File

@ -9,8 +9,8 @@ DIR_TEST=$SHARNESS_TEST_DIRECTORY/t0004
test_expect_success "Parse comments" " test_expect_success "Parse comments" "
export COVERAGE_NAME=comments_parser export COVERAGE_NAME=comments_parser
cp ../.simplecov . cp ../.simplecov .
cfg_parser $DIR_TEST/comments.ini "$COMMAND" cfg_parser $DIR_TEST/comments.ini
cfg_writer > comments.out "$COMMAND" cfg_writer > comments.out
diff $DIR_TEST/comments.out.correct comments.out diff $DIR_TEST/comments.out.correct comments.out
" "