[Tarantool-patches] [PATCH v1 3/3] Switch coverage saving from travis-ci to github-ci

Alexander V. Tikhonov avtikhon at tarantool.org
Fri Dec 11 19:56:26 MSK 2020


Moved coverage saving to coveralls.io repository from travis-ci to
github-ci. Completely removed travis-ci from commit criteria.

Part of #5294
---
 .github/workflows/ci.yml |  2 ++
 .travis.mk               |  7 +++++--
 .travis.yml              | 40 ----------------------------------------
 3 files changed, 7 insertions(+), 42 deletions(-)
 delete mode 100644 .travis.yml

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 94ded455f..351f94f5c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -36,6 +36,8 @@ jobs:
       - uses: actions/checkout at v1
       - name: test
         run: ${TRAVIS_MAKE} test_coverage_debian_no_deps
+        env:
+          COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
 
   release_clang:
     runs-on: ubuntu-latest
diff --git a/.travis.mk b/.travis.mk
index 985385d20..92d2825ca 100644
--- a/.travis.mk
+++ b/.travis.mk
@@ -140,11 +140,14 @@ test_coverage_debian_no_deps: build_coverage_debian
 	lcov --compat-libtool --remove coverage.info.tmp 'tests/*' 'third_party/*' '/usr/*' \
 		--rc lcov_branch_coverage=1 --rc lcov_function_coverage=1 --output-file coverage.info
 	lcov --list coverage.info
+	# coveralls API: https://docs.coveralls.io/api-reference
 	@if [ -n "$(COVERALLS_TOKEN)" ]; then \
 		echo "Exporting code coverage information to coveralls.io"; \
 		gem install coveralls-lcov; \
-		echo coveralls-lcov --service-name travis-ci --service-job-id $(TRAVIS_JOB_ID) --repo-token [FILTERED] coverage.info; \
-		coveralls-lcov --service-name travis-ci --service-job-id $(TRAVIS_JOB_ID) --repo-token $(COVERALLS_TOKEN) coverage.info; \
+		echo coveralls-lcov --service-name github-ci --service-job-id $(GITHUB_RUN_ID) \
+			--repo-token [FILTERED] coverage.info; \
+		coveralls-lcov --service-name github-ci --service-job-id $(GITHUB_RUN_ID) \
+			--repo-token $(COVERALLS_TOKEN) coverage.info; \
 	fi;
 
 coverage_debian: deps_debian test_coverage_debian_no_deps
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index c2f7bbe94..000000000
--- a/.travis.yml
+++ /dev/null
@@ -1,40 +0,0 @@
-sudo: false
-services:
-  - docker
-
-language: cpp
-
-# default values
-os: linux
-compiler: gcc
-
-cache:
-    directories:
-      - $HOME/.cache
-
-git:
-    depth: 100500
-
-env: >
-    TEST_RUN_EXTRA_PARAMS="-j 1"
-
-jobs:
-    include:
-      # Testing targets (just run tests on Debian Stretch or OS X).
-      - name: "RelWithDebInfo build + test (Linux, gcc)"
-        env: TARGET=test
-      - name: "RelWithDebInfo build + test (Linux, clang)"
-        env: TARGET=test
-        compiler: clang
-      - name: "Debug build + test + coverage (Linux, gcc)"
-        env: TARGET=coverage
-
-script:
-  - make -f .travis.mk ${TARGET}
-
-notifications:
-  email:
-    recipients:
-      - build at tarantool.org
-    on_success: change
-    on_failure: always
-- 
2.25.1



More information about the Tarantool-patches mailing list