[tarantool-patches] [PATCH v2 3/3] test: add LTO targets into CI

Alexander Turenko alexander.turenko at tarantool.org
Mon Oct 15 02:17:39 MSK 2018


From: AKhatskevich <avkhatskevich at tarantool.org>

---
 .travis.mk  | 4 ++--
 .travis.yml | 8 ++++++++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/.travis.mk b/.travis.mk
index 88335474c..1b7d05149 100644
--- a/.travis.mk
+++ b/.travis.mk
@@ -40,7 +40,7 @@ deps_ubuntu:
 		lcov ruby
 
 test_ubuntu: deps_ubuntu
-	cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfoWError
+	cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfoWError ${CMAKE_EXTRA_PARAMS}
 	make -j8
 	cd test && /usr/bin/python test-run.py -j 1
 
@@ -49,7 +49,7 @@ deps_osx:
 	brew install openssl readline curl icu4c --force
 
 test_osx: deps_osx
-	cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfoWError
+	cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfoWError ${CMAKE_EXTRA_PARAMS}
 	# Increase the maximum number of open file descriptors on macOS
 	sudo sysctl -w kern.maxfiles=20480 || :
 	sudo sysctl -w kern.maxfilesperproc=20480 || :
diff --git a/.travis.yml b/.travis.yml
index a9d1036da..dbd8c91c0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -33,6 +33,14 @@ matrix:
         os: osx
       - name: Debug build + test + coverage (Linux, gcc)
         env: TARGET=coverage
+      - name: LTO build + test (Linux, gcc)
+        env: TARGET=test CMAKE_EXTRA_PARAMS=-DENABLE_LTO=ON
+      - name: LTO build + test (Linux, clang)
+        env: TARGET=test CMAKE_EXTRA_PARAMS=-DENABLE_LTO=ON
+        compiler: clang
+      - name: LTO build + test (OS X)
+        os: osx
+        env: TARGET=test CMAKE_EXTRA_PARAMS=-DENABLE_LTO=ON
       - name: CentOS 6 build + test + deploy RPM
         env: OS=el DIST=6
       - name: CentOS 7 build + test + deploy RPM
-- 
2.19.1





More information about the Tarantool-patches mailing list