From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp54.i.mail.ru (smtp54.i.mail.ru [217.69.128.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 245BE45C309 for ; Fri, 11 Dec 2020 19:56:33 +0300 (MSK) From: "Alexander V. Tikhonov" Date: Fri, 11 Dec 2020 19:56:26 +0300 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v1 3/3] Switch coverage saving from travis-ci to github-ci List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Oleg Koshovetc , Timur Safin , Kirill Yukhin Cc: tarantool-patches@dev.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