Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v1 0/3] Initiate commit testing on github-ci action
@ 2020-12-11 16:56 Alexander V. Tikhonov
  2020-12-11 16:56 ` [Tarantool-patches] [PATCH v1 1/3] " Alexander V. Tikhonov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexander V. Tikhonov @ 2020-12-11 16:56 UTC (permalink / raw)
  To: Oleg Koshovetc, Timur Safin, Kirill Yukhin; +Cc: tarantool-patches

Implemented github-ci action workflow on commits. Added group of CI
jobs:

  1) on Debian 9 ("Stretch") base builds:
     - release
     - debug (with coverage to coverals.io repository)
     - release_clang
     - release_lto
    
  2) on Debian 10 ("Buster") with clang 11 builds:
     - release_lto_clang11
     - release_asan_clang11

  3) on OSX 10.15 release build:
     - osx_10_15

  4) on OSX 11.0 release build:
     - osx_11_0
    
Moved coverage saving to coveralls.io repository from travis-ci to
github-ci. Completely removed travis-ci from commit criteria.
    
Part of #5294

Alexander V. Tikhonov (3):
  Initiate commit testing on github-ci action
  Implement OSX commit testing on github-ci action
  Switch coverage saving from travis-ci to github-ci

---

Github: https://github.com/tarantool/tarantool/tree/avtikhon/github-ci
Issue: https://github.com/tarantool/tarantool/issues/5294

 .github/workflows/ci.yml | 148 +++++++++++++++++++++++++++++++++++++++
 .travis.mk               |  20 ++++--
 .travis.yml              |  40 -----------
 3 files changed, 164 insertions(+), 44 deletions(-)
 create mode 100644 .github/workflows/ci.yml
 delete mode 100644 .travis.yml

-- 
2.25.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Tarantool-patches] [PATCH v1 1/3] Initiate commit testing on github-ci action
  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 ` Alexander V. Tikhonov
  2020-12-11 16:56 ` [Tarantool-patches] [PATCH v1 2/3] Implement OSX " Alexander V. Tikhonov
  2020-12-11 16:56 ` [Tarantool-patches] [PATCH v1 3/3] Switch coverage saving from travis-ci to github-ci Alexander V. Tikhonov
  2 siblings, 0 replies; 4+ messages in thread
From: Alexander V. Tikhonov @ 2020-12-11 16:56 UTC (permalink / raw)
  To: Oleg Koshovetc, Timur Safin, Kirill Yukhin; +Cc: tarantool-patches

Implemented github-ci action workflow on commits.
Added group of CI jobs:

1) on Debian 9 ("Stretch"):
 - release
 - debug
 - release_clang
 - release_lto

2) on Debian 10 ("Buster")
 - release_lto_clang11
 - release_asan_clang11

Part of #5294
---
 .github/workflows/ci.yml | 116 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 116 insertions(+)
 create mode 100644 .github/workflows/ci.yml

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 000000000..f16cc5dff
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,116 @@
+name: CI
+
+on: [push]
+
+env:
+  IMAGE: ghcr.io/avtikhon/tarantool/testing/debian-stretch:latest
+  TRAVIS_MAKE: make -f .travis.mk
+
+jobs:
+  release:
+    runs-on: ubuntu-latest
+    #runs-on: self-hosted
+
+    strategy:
+      fail-fast: false
+
+    container:
+      image: ghcr.io/avtikhon/tarantool/testing/debian-stretch:latest
+
+    steps:
+      - uses: actions/checkout@v1
+      - name: test
+        run: ${TRAVIS_MAKE} test_debian_no_deps
+
+  debug:
+    runs-on: ubuntu-latest
+    #runs-on: self-hosted
+
+    strategy:
+      fail-fast: false
+
+    container:
+      image: ghcr.io/avtikhon/tarantool/testing/debian-stretch:latest
+
+    steps:
+      - uses: actions/checkout@v1
+      - name: test
+        run: ${TRAVIS_MAKE} test_coverage_debian_no_deps
+
+  release_clang:
+    runs-on: ubuntu-latest
+    #runs-on: self-hosted
+
+    strategy:
+      fail-fast: false
+
+    container:
+      image: ghcr.io/avtikhon/tarantool/testing/debian-stretch:latest
+
+    steps:
+      - uses: actions/checkout@v1
+      - name: test
+        env:
+          CC: clang
+          CXX: clang++
+        run: ${TRAVIS_MAKE} test_debian_no_deps
+
+  release_lto:
+    runs-on: ubuntu-latest
+    #runs-on: self-hosted
+
+    strategy:
+      fail-fast: false
+
+    container:
+      image: ghcr.io/avtikhon/tarantool/testing/debian-buster:latest
+
+    steps:
+      - uses: actions/checkout@v2.3.4
+        with:
+          fetch-depth: 0
+          submodules: recursive
+      - name: test
+        env:
+          CMAKE_EXTRA_PARAMS: -DENABLE_LTO=ON
+        run: ${TRAVIS_MAKE} test_debian_no_deps
+
+  release_lto_clang11:
+    runs-on: ubuntu-latest
+    #runs-on: self-hosted
+
+    strategy:
+      fail-fast: false
+
+    container:
+      image: ghcr.io/avtikhon/tarantool/testing/debian-buster:latest
+
+    steps:
+      - uses: actions/checkout@v2.3.4
+        with:
+          fetch-depth: 0
+          submodules: recursive
+      - name: test
+        env:
+          CC: clang-11
+          CXX: clang++-11
+          CMAKE_EXTRA_PARAMS: -DENABLE_LTO=ON
+        run: ${TRAVIS_MAKE} test_debian_no_deps
+
+  release_asan_clang11:
+    runs-on: ubuntu-latest
+    #runs-on: self-hosted
+
+    strategy:
+      fail-fast: false
+
+    container:
+      image: ghcr.io/avtikhon/tarantool/testing/debian-buster:latest
+
+    steps:
+      - uses: actions/checkout@v2.3.4
+        with:
+          fetch-depth: 0
+          submodules: recursive
+      - name: test
+        run: ${TRAVIS_MAKE} test_asan_debian_no_deps
-- 
2.25.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Tarantool-patches] [PATCH v1 2/3] Implement OSX commit testing on github-ci action
  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 ` Alexander V. Tikhonov
  2020-12-11 16:56 ` [Tarantool-patches] [PATCH v1 3/3] Switch coverage saving from travis-ci to github-ci Alexander V. Tikhonov
  2 siblings, 0 replies; 4+ messages in thread
From: Alexander V. Tikhonov @ 2020-12-11 16:56 UTC (permalink / raw)
  To: Oleg Koshovetc, Timur Safin, Kirill Yukhin; +Cc: tarantool-patches

Implemented github-ci action workflow OSX jobs on commits:
 - OSX 10.15
 - OSX 11.0

Part of #5294
---
 .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++
 .travis.mk               | 13 +++++++++++--
 2 files changed, 41 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f16cc5dff..94ded455f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -114,3 +114,33 @@ jobs:
           submodules: recursive
       - name: test
         run: ${TRAVIS_MAKE} test_asan_debian_no_deps
+
+  osx_10_15:
+    runs-on: macos-10.15
+    #runs-on: self-hosted
+
+    strategy:
+      fail-fast: false
+
+    steps:
+      - uses: actions/checkout@v2.3.4
+        with:
+          fetch-depth: 0
+          submodules: recursive
+      - name: test
+        run: ${TRAVIS_MAKE} test_osx_github_actions
+
+  osx_11_0:
+    runs-on: macos-11.0
+    #runs-on: self-hosted
+
+    strategy:
+      fail-fast: false
+
+    steps:
+      - uses: actions/checkout@v2.3.4
+        with:
+          fetch-depth: 0
+          submodules: recursive
+      - name: test
+        run: ${TRAVIS_MAKE} test_osx_github_actions
diff --git a/.travis.mk b/.travis.mk
index 238e31cda..985385d20 100644
--- a/.travis.mk
+++ b/.travis.mk
@@ -236,8 +236,9 @@ test_oos_build:
 #######
 
 # since Python 2 is EOL it's latest commit from tapped local formula is used
-OSX_PKGS=openssl readline curl icu4c libiconv zlib autoconf automake libtool \
-	cmake file://$${PWD}/tools/brew_taps/tntpython2.rb
+OSX_PKGS_MIN=openssl readline curl icu4c libiconv zlib autoconf automake libtool \
+	cmake
+OSX_PKGS=${OSX_PKGS_MIN} file://$${PWD}/tools/brew_taps/tntpython2.rb
 
 deps_osx:
 	# install brew using command from Homebrew repository instructions:
@@ -252,6 +253,12 @@ deps_osx:
 	brew install --force ${OSX_PKGS} || brew upgrade ${OSX_PKGS}
 	pip install --force-reinstall -r test-run/requirements.txt
 
+deps_osx_github_actions:
+	# try to install the packages either upgrade it to avoid of fails
+	# if the package already exists with the previous version
+	brew install --force ${OSX_PKGS_MIN} || brew upgrade ${OSX_PKGS_MIN}
+	pip install --force-reinstall -r test-run/requirements.txt
+
 build_osx:
 	cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_WERROR=ON ${CMAKE_EXTRA_PARAMS}
 	make -j
@@ -282,6 +289,8 @@ test_osx_no_deps: build_osx
 
 test_osx: deps_osx test_osx_no_deps
 
+test_osx_github_actions: deps_osx_github_actions test_osx_no_deps
+
 # Static macOS build
 
 STATIC_OSX_PKGS=autoconf automake libtool cmake file://$${PWD}/tools/brew_taps/tntpython2.rb
-- 
2.25.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Tarantool-patches] [PATCH v1 3/3] Switch coverage saving from travis-ci to github-ci
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Alexander V. Tikhonov @ 2020-12-11 16:56 UTC (permalink / raw)
  To: Oleg Koshovetc, Timur Safin, Kirill Yukhin; +Cc: tarantool-patches

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-11 16:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [Tarantool-patches] [PATCH v1 3/3] Switch coverage saving from travis-ci to github-ci Alexander V. Tikhonov

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