[CRIU] [PATCH 19/23] CI: move travis' after_success to a script
Kir Kolyshkin
kir at openvz.org
Tue Oct 11 18:46:57 PDT 2016
It is easier to handle it this way
Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
.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 fcb10f9..98a99d0 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 ab063c8..ee0abac 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 0000000..4ba2bd7
--- /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
--
2.7.4
More information about the CRIU
mailing list