Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v4 0/2] add Catalina OSX 10.15 to gitlab-ci
@ 2020-01-21 16:02 Alexander V. Tikhonov
  2020-01-21 16:02 ` [Tarantool-patches] [PATCH v4 1/2] build: tune OSX environment Alexander V. Tikhonov
  2020-01-21 16:02 ` [Tarantool-patches] [PATCH v4 2/2] gitlab-ci: add Catalina OSX 10.15 Alexander V. Tikhonov
  0 siblings, 2 replies; 5+ messages in thread
From: Alexander V. Tikhonov @ 2020-01-21 16:02 UTC (permalink / raw)
  To: Oleg Piskunov; +Cc: tarantool-patches

gitlab-ci: add Catalina OSX 10.15
    
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.
    
Also added homebrew installation routine as it was suggested in its
instructions. 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. Added reinstallation of the python2
with force option to be able to install it to /usr/local/ path to
make pip install there too.

Github: https://github.com/tarantool/tarantool/tree/avtikhon/osx_15_catalina
v3:https://lists.tarantool.org/pipermail/tarantool-patches/2019-December/013133.html
v2:https://lists.tarantool.org/pipermail/tarantool-patches/2019-December/013094.html
v1:https://lists.tarantool.org/pipermail/tarantool-patches/2019-December/012951.html

Changes v4:
- removed unneeded code
Changes v3:
- divided commit into 2 separate commits
Changes v2:
- added comments, made corrections

Alexander V. Tikhonov (2):
  build: tune OSX environment
  gitlab-ci: add Catalina OSX 10.15

 .gitlab-ci.yml | 10 +++++-----
 .travis.mk     | 37 +++++++++++++++++++++++++++++--------
 2 files changed, 34 insertions(+), 13 deletions(-)

-- 
2.17.1

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

* [Tarantool-patches] [PATCH v4 1/2] build: tune OSX environment
  2020-01-21 16:02 [Tarantool-patches] [PATCH v4 0/2] add Catalina OSX 10.15 to gitlab-ci Alexander V. Tikhonov
@ 2020-01-21 16:02 ` Alexander V. Tikhonov
  2020-01-21 16:21   ` Oleg Piskunov
  2020-01-21 16:02 ` [Tarantool-patches] [PATCH v4 2/2] gitlab-ci: add Catalina OSX 10.15 Alexander V. Tikhonov
  1 sibling, 1 reply; 5+ messages in thread
From: Alexander V. Tikhonov @ 2020-01-21 16:02 UTC (permalink / raw)
  To: Oleg Piskunov; +Cc: tarantool-patches

Added homebrew installation routine as it was suggested in its
instructions. Added installation of the cmake tool. Added upgrade
of the OSX packages to avoid of fails on already existed packages
with the previous versions.

Added reinstallation of the python2 with force option to be able
to install it to /usr/local/ path to make pip install there too.
---
 .travis.mk | 37 +++++++++++++++++++++++++++++--------
 1 file changed, 29 insertions(+), 8 deletions(-)

diff --git a/.travis.mk b/.travis.mk
index 42969ff56..def513713 100644
--- a/.travis.mk
+++ b/.travis.mk
@@ -127,17 +127,38 @@ test_asan_debian: deps_debian deps_buster_clang_8 test_asan_debian_no_deps
 # OSX #
 #######
 
+# WARNING: installing pip it checks that python2 installed in /usr/local/
+# path while python2 could be installed in /usr/bin path which will be
+# the cause that pip installation will be done at /User/tarantool/ path,
+# to avoid of it python2 must be reinstalled with force option to be able
+# to install it to /usr/local/ path and pip will be installed there too.
+OSX_PKGS=openssl readline curl icu4c libiconv zlib autoconf automake libtool cmake python2
+
 deps_osx:
-	brew update
-	brew install openssl readline curl icu4c libiconv zlib autoconf automake libtool --force
-	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
+	# install brew using command from Homebrew repository instructions:
+	#   https://github.com/Homebrew/install
+	# NOTE: 'echo' command below is required since brew installation
+	# script obliges the one to enter a newline for confirming the
+	# installation via Ruby script.
+	#
+	# try to install the packages either upgrade it to avoid of fails
+	# if the package already exists with the previous version
+	#
+	# set PATH to /usr/local/bin as the main to be able to use brew
+	# installed python and tools
+	export PATH=/usr/local/bin:${PATH} ; \
+		brew update || echo | /usr/bin/ruby -e \
+			"$$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" && \
+		brew install --force ${OSX_PKGS} || brew upgrade ${OSX_PKGS} && \
+		curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py >get-pip.py && \
+		python get-pip.py && \
+		pip install --force-reinstall -r test-run/requirements.txt
 
 build_osx:
-	cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_WERROR=ON ${CMAKE_EXTRA_PARAMS}
-	make -j
+	export PATH=/usr/local/bin:${PATH} ; \
+		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] 5+ messages in thread

* [Tarantool-patches] [PATCH v4 2/2] gitlab-ci: add Catalina OSX 10.15
  2020-01-21 16:02 [Tarantool-patches] [PATCH v4 0/2] add Catalina OSX 10.15 to gitlab-ci Alexander V. Tikhonov
  2020-01-21 16:02 ` [Tarantool-patches] [PATCH v4 1/2] build: tune OSX environment Alexander V. Tikhonov
@ 2020-01-21 16:02 ` Alexander V. Tikhonov
  2020-01-21 16:21   ` Oleg Piskunov
  1 sibling, 1 reply; 5+ messages in thread
From: Alexander V. Tikhonov @ 2020-01-21 16:02 UTC (permalink / raw)
  To: Oleg Piskunov; +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.
---
 .gitlab-ci.yml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3af5a3c8a..d02c8966a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -90,19 +90,19 @@ release_asan_clang8:
   script:
     - ${GITLAB_MAKE} test_asan_debian_no_deps
 
-osx_13_release:
-  <<: *release_only_definition
+osx_15_release:
   <<: *vbox_definition
   tags:
-    - vms_osx_13
+    - vms_osx_15
   variables:
-    VMS_NAME: 'osx_13'
+    VMS_NAME: 'osx_15'
     VMS_USER: 'tarantool'
-    VMS_PORT: '2212'
+    VMS_PORT: '2242'
   script:
     - ${GITLAB_MAKE} vms_test_osx
 
 osx_14_release:
+  <<: *release_only_definition
   <<: *vbox_definition
   tags:
     - vms_osx_14
-- 
2.17.1

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

* Re: [Tarantool-patches] [PATCH v4 1/2] build: tune OSX environment
  2020-01-21 16:02 ` [Tarantool-patches] [PATCH v4 1/2] build: tune OSX environment Alexander V. Tikhonov
@ 2020-01-21 16:21   ` Oleg Piskunov
  0 siblings, 0 replies; 5+ messages in thread
From: Oleg Piskunov @ 2020-01-21 16:21 UTC (permalink / raw)
  To: Alexander V. Tikhonov; +Cc: tarantool-patches

[-- Attachment #1: Type: text/plain, Size: 3144 bytes --]

LGTM. 
Minor: Please remove "#WARNING" explanation. 
           It is describe specific case which can't happen anymore.


>Вторник, 21 января 2020, 19:03 +03:00 от Alexander V. Tikhonov <avtikhon@tarantool.org>:
>
>Added homebrew installation routine as it was suggested in its
>instructions. Added installation of the cmake tool. Added upgrade
>of the OSX packages to avoid of fails on already existed packages
>with the previous versions.
>
>Added reinstallation of the python2 with force option to be able
>to install it to /usr/local/ path to make pip install there too.
>---
> .travis.mk | 37 +++++++++++++++++++++++++++++--------
> 1 file changed, 29 insertions(+), 8 deletions(-)
>
>diff --git a/.travis.mk b/.travis.mk
>index 42969ff56..def513713 100644
>--- a/.travis.mk
>+++ b/.travis.mk
>@@ -127,17 +127,38 @@ test_asan_debian: deps_debian deps_buster_clang_8 test_asan_debian_no_deps
> # OSX #
> #######
> 
>+# WARNING: installing pip it checks that python2 installed in /usr/local/
>+# path while python2 could be installed in /usr/bin path which will be
>+# the cause that pip installation will be done at /User/tarantool/ path,
>+# to avoid of it python2 must be reinstalled with force option to be able
>+# to install it to /usr/local/ path and pip will be installed there too.
>+OSX_PKGS=openssl readline curl icu4c libiconv zlib autoconf automake libtool cmake python2
>+
> deps_osx:
>-	brew update
>-	brew install openssl readline curl icu4c libiconv zlib autoconf automake libtool --force
>-	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
>+	# install brew using command from Homebrew repository instructions:
>+	#  https://github.com/Homebrew/install
>+	# NOTE: 'echo' command below is required since brew installation
>+	# script obliges the one to enter a newline for confirming the
>+	# installation via Ruby script.
>+	#
>+	# try to install the packages either upgrade it to avoid of fails
>+	# if the package already exists with the previous version
>+	#
>+	# set PATH to /usr/local/bin as the main to be able to use brew
>+	# installed python and tools
>+	export PATH=/usr/local/bin:${PATH} ; \
>+		brew update || echo | /usr/bin/ruby -e \
>+			"$$(curl -fsSL  https://raw.githubusercontent.com/Homebrew/install/master/install )" && \
>+		brew install --force ${OSX_PKGS} || brew upgrade ${OSX_PKGS} && \
>+		curl --silent --show-error --retry 5  https://bootstrap.pypa.io/get-pip.py >get-pip.py && \
>+		python get-pip.py && \
>+		pip install --force-reinstall -r test-run/requirements.txt
> 
> build_osx:
>-	cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_WERROR=ON ${CMAKE_EXTRA_PARAMS}
>-	make -j
>+	export PATH=/usr/local/bin:${PATH} ; \
>+		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
>


-- 
Oleg Piskunov

[-- Attachment #2: Type: text/html, Size: 4127 bytes --]

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

* Re: [Tarantool-patches] [PATCH v4 2/2] gitlab-ci: add Catalina OSX 10.15
  2020-01-21 16:02 ` [Tarantool-patches] [PATCH v4 2/2] gitlab-ci: add Catalina OSX 10.15 Alexander V. Tikhonov
@ 2020-01-21 16:21   ` Oleg Piskunov
  0 siblings, 0 replies; 5+ messages in thread
From: Oleg Piskunov @ 2020-01-21 16:21 UTC (permalink / raw)
  To: Alexander V. Tikhonov; +Cc: tarantool-patches

[-- Attachment #1: Type: text/plain, Size: 1194 bytes --]

LGTM


>Вторник, 21 января 2020, 19:03 +03:00 от Alexander V. Tikhonov <avtikhon@tarantool.org>:
>
>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.
>---
> .gitlab-ci.yml | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
>diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
>index 3af5a3c8a..d02c8966a 100644
>--- a/.gitlab-ci.yml
>+++ b/.gitlab-ci.yml
>@@ -90,19 +90,19 @@ release_asan_clang8:
>   script:
>     - ${GITLAB_MAKE} test_asan_debian_no_deps
> 
>-osx_13_release:
>-  <<: *release_only_definition
>+osx_15_release:
>   <<: *vbox_definition
>   tags:
>-    - vms_osx_13
>+    - vms_osx_15
>   variables:
>-    VMS_NAME: 'osx_13'
>+    VMS_NAME: 'osx_15'
>     VMS_USER: 'tarantool'
>-    VMS_PORT: '2212'
>+    VMS_PORT: '2242'
>   script:
>     - ${GITLAB_MAKE} vms_test_osx
> 
> osx_14_release:
>+  <<: *release_only_definition
>   <<: *vbox_definition
>   tags:
>     - vms_osx_14
>-- 
>2.17.1
>


-- 
Oleg Piskunov

[-- Attachment #2: Type: text/html, Size: 1897 bytes --]

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

end of thread, other threads:[~2020-01-21 16:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-21 16:02 [Tarantool-patches] [PATCH v4 0/2] add Catalina OSX 10.15 to gitlab-ci Alexander V. Tikhonov
2020-01-21 16:02 ` [Tarantool-patches] [PATCH v4 1/2] build: tune OSX environment Alexander V. Tikhonov
2020-01-21 16:21   ` Oleg Piskunov
2020-01-21 16:02 ` [Tarantool-patches] [PATCH v4 2/2] gitlab-ci: add Catalina OSX 10.15 Alexander V. Tikhonov
2020-01-21 16:21   ` Oleg Piskunov

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