From 2f2fc08202abf772adee36d45e18f6d0a45c237a Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 11 Oct 2016 18:46:57 -0700 Subject: [PATCH] CI: move travis' after_success to a script It is easier to handle it this way Signed-off-by: Kir Kolyshkin Signed-off-by: Pavel Emelyanov --- .travis.yml | 5 +---- scripts/travis/Makefile | 4 ++++ scripts/travis/travis-after_success | 7 +++++++ 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100755 scripts/travis/travis-after_success 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