Tarantool development patches archive
 help / color / mirror / Atom feed
From: "Alexander V. Tikhonov" <avtikhon@tarantool.org>
To: Oleg Koshovetc <okoshovetc@tarantool.org>,
	Timur Safin <tsafin@tarantool.org>,
	Kirill Yukhin <kyukhin@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: [Tarantool-patches] [PATCH v1 3/3] Switch coverage saving from travis-ci to github-ci
Date: Fri, 11 Dec 2020 19:56:26 +0300	[thread overview]
Message-ID: <ad3d421b4eb329fcd249308d8de231453b3e2f34.1607705412.git.avtikhon@tarantool.org> (raw)
In-Reply-To: <cover.1607705412.git.avtikhon@tarantool.org>

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@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@tarantool.org
-    on_success: change
-    on_failure: always
-- 
2.25.1

      parent reply	other threads:[~2020-12-11 16:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-11 16:56 [Tarantool-patches] [PATCH v1 0/3] Initiate commit testing on github-ci action Alexander V. Tikhonov
2020-12-11 16:56 ` [Tarantool-patches] [PATCH v1 1/3] " Alexander V. Tikhonov
2020-12-11 16:56 ` [Tarantool-patches] [PATCH v1 2/3] Implement OSX " Alexander V. Tikhonov
2020-12-11 16:56 ` Alexander V. Tikhonov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ad3d421b4eb329fcd249308d8de231453b3e2f34.1607705412.git.avtikhon@tarantool.org \
    --to=avtikhon@tarantool.org \
    --cc=kyukhin@tarantool.org \
    --cc=okoshovetc@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --cc=tsafin@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH v1 3/3] Switch coverage saving from travis-ci to github-ci' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox