Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v1] gitlab-ci: add Catalina OSX 10.15
@ 2020-04-30 12:23 Alexander V. Tikhonov
  2020-04-30 12:47 ` Sergey Bronnikov
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Alexander V. Tikhonov @ 2020-04-30 12:23 UTC (permalink / raw)
  To: Oleg Piskunov, Sergey Bronnikov; +Cc: tarantool-patches

Added Catalina OSX 10.15 to gitlab-ci testing and removed OSX 10.13,
due to decided to have only 2 last major releases, for now it is
10.14 and 10.15 OSX versions. Also changed the commit job for branches
from 10.14 to 10.15 OSX version.

Close #4873
---

Github: https://github.com/tarantool/tarantool/tree/avtikhon/osx_15_catalina-full-ci
Issue: https://github.com/tarantool/tarantool/issues/4873

 .gitlab-ci.yml | 26 +++++++++++---------------
 1 file changed, 11 insertions(+), 15 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fd265aa60..09feda7f3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -139,32 +139,28 @@ release_asan_clang8:
   script:
     - ${GITLAB_MAKE} test_asan_debian_no_deps
 
-osx_13_release:
+osx_14_release:
   <<: *release_only_definition
-  <<: *vbox_definition
+  stage: test
   tags:
-    - vms_osx_13
-  variables:
-    VMS_NAME: 'osx_13'
-    VMS_USER: 'tarantool'
-    VMS_PORT: '2212'
+    - osx_14
   script:
-    - ${GITLAB_MAKE} vms_test_osx
+    - ${GITLAB_MAKE} test_osx
 
-osx_14_release:
-  <<: *docker_test_definition
+osx_15_release:
+  stage: test
   tags:
-    - osx_14
+    - osx_15
   script:
     - ${GITLAB_MAKE} test_osx
 
-osx_14_release_lto:
+osx_15_release_lto:
   <<: *release_only_definition
-  <<: *docker_test_definition
+  stage: test
   tags:
-    - osx_14
+    - osx_15
   variables:
-    EXTRA_ENV: "export CMAKE_EXTRA_PARAMS=-DENABLE_LTO=ON ;"
+    EXTRA_ENV: 'export CMAKE_EXTRA_PARAMS=-DENABLE_LTO=ON ;'
   script:
     - ${GITLAB_MAKE} test_osx
 
-- 
2.17.1

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [Tarantool-patches] [PATCH v1] gitlab-ci: add Catalina OSX 10.15
@ 2019-12-09 11:45 Alexander V. Tikhonov
  2019-12-16 13:23 ` Igor Munkin
  2019-12-17 15:46 ` Alexander Turenko
  0 siblings, 2 replies; 9+ messages in thread
From: Alexander V. Tikhonov @ 2019-12-09 11:45 UTC (permalink / raw)
  To: Igor Munkin; +Cc: tarantool-patches

Added Catalina OSX 10.15 to gitlab-ci testing and removed OSX 10.13,
due to decided to have only 2 last major releases, for now it is
10.14 and 10.15 OSX versions.

Also added homebrew installation routine as it was suggested in its
instructions. Added path in environment to reach the pip binary that
was additionally installed based on python2 version in addition to
pip3 which is the default in Catalina OSX 10.15. Added installation
of the cmake and tool. Added upgrade of the OSX packages to avoid of
fails on already existed packages, but of the previous versions.
---

Github: https://github.com/tarantool/tarantool/tree/avtikhon/osx_15_catalina

 .gitlab-ci.yml |  8 ++++----
 .travis.mk     | 30 +++++++++++++++++++++++++-----
 2 files changed, 29 insertions(+), 9 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3af5a3c8a..d3cb959d0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -90,15 +90,15 @@ release_asan_clang8:
   script:
     - ${GITLAB_MAKE} test_asan_debian_no_deps
 
-osx_13_release:
+osx_15_release:
   <<: *release_only_definition
   <<: *vbox_definition
   tags:
-    - vms_osx_13
+    - vms_test
   variables:
-    VMS_NAME: 'osx_13'
+    VMS_NAME: 'osx_15'
     VMS_USER: 'tarantool'
-    VMS_PORT: '2212'
+    VMS_PORT: '2242'
   script:
     - ${GITLAB_MAKE} vms_test_osx
 
diff --git a/.travis.mk b/.travis.mk
index 42969ff56..c8cb273fa 100644
--- a/.travis.mk
+++ b/.travis.mk
@@ -127,17 +127,37 @@ test_asan_debian: deps_debian deps_buster_clang_8 test_asan_debian_no_deps
 # OSX #
 #######
 
+OSX_PKGS=openssl readline curl icu4c libiconv zlib autoconf automake libtool cmake
+
 deps_osx:
-	brew update
-	brew install openssl readline curl icu4c libiconv zlib autoconf automake libtool --force
+	# install brew using command from Homebrew repository instructions:
+	#   https://github.com/Homebrew/install
+	export PATH=${PATH}:/usr/local/bin ; \
+		brew update || echo | /usr/bin/ruby -e \
+			"`curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install`"
+	# try to install the packages either upgrade it to avoid of fails
+	# if the package allready exists but of the previous version
+	export PATH=${PATH}:/usr/local/bin ; \
+		brew install --force ${OSX_PKGS} || brew upgrade ${OSX_PKGS}
+	# OSX 10.15 Catalina started to use Xcode 11 which has 'Deprications'
+	# part in Release Notes:
+	#   Use of Python 2.7 isn’t recommended. This version is included in
+	#   macOS for compatibility with legacy software. Future versions of
+	#   macOS won’t include Python 2.7. Instead, it’s recommended that
+	#   you run python3 in Terminal. (51097165)
 	python2 -V || brew install python2 --force
 	curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py >get-pip.py
 	python get-pip.py --user
-	pip install --user --force-reinstall -r test-run/requirements.txt
+	# To make pip tools available, the PATH environment must include the
+	# path to its binaries
+	export PATH=${PATH}:/Users/tarantool/Library/Python/2.7/bin ; \
+		pip install --user --force-reinstall -r test-run/requirements.txt
 
 build_osx:
-	cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_WERROR=ON ${CMAKE_EXTRA_PARAMS}
-	make -j
+	export PATH=${PATH}:/usr/local/bin ; \
+		cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+			-DENABLE_WERROR=ON ${CMAKE_EXTRA_PARAMS} && \
+		make -j
 
 test_osx_no_deps: build_osx
 	# Limits: Increase the maximum number of open file descriptors on macOS:
-- 
2.17.1

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

end of thread, other threads:[~2020-05-08  8:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-30 12:23 [Tarantool-patches] [PATCH v1] gitlab-ci: add Catalina OSX 10.15 Alexander V. Tikhonov
2020-04-30 12:47 ` Sergey Bronnikov
2020-05-01  0:16 ` Oleg Piskunov
2020-05-08  8:40 ` Kirill Yukhin
  -- strict thread matches above, loose matches on Subject: below --
2019-12-09 11:45 Alexander V. Tikhonov
2019-12-16 13:23 ` Igor Munkin
2019-12-16 13:54   ` Alexander Tikhonov
2019-12-17 15:46 ` Alexander Turenko
2019-12-18  4:57   ` Alexander Tikhonov

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