diff --git a/.travis.yml b/.travis.yml index fcb10f9e8..98a99d01c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,4 @@ env: script: - sudo make -C scripts/travis $TR_ARCH after_success: - - sudo apt-get install -qq -y lcov - - gem install coveralls-lcov - - sudo lcov --directory criu --capture --output-file coverage.info - - coveralls-lcov coverage.info + - make -C scripts/travis after_success diff --git a/scripts/travis/Makefile b/scripts/travis/Makefile index ab063c8b9..ee0abacc2 100644 --- a/scripts/travis/Makefile +++ b/scripts/travis/Makefile @@ -2,5 +2,9 @@ local: ./travis-tests .PHONY: local +after_success: + ./travis-after_success +.PHONY: after_success + %: $(MAKE) -C ../build $@ diff --git a/scripts/travis/travis-after_success b/scripts/travis/travis-after_success new file mode 100755 index 000000000..4ba2bd74f --- /dev/null +++ b/scripts/travis/travis-after_success @@ -0,0 +1,7 @@ +#!/bin/sh +set -x -e + +sudo apt-get install -qq -y lcov +gem install coveralls-lcov +sudo lcov --directory ../.. --capture --output-file coverage.info +coveralls-lcov coverage.info