Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d8943b0c
Commit
d8943b0c
authored
Sep 05, 2021
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-26527 speedup appveyor build
Define custom target for minimal testable build use it in appveyor.yml
parent
7dd85c0f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
18 deletions
+45
-18
CMakeLists.txt
CMakeLists.txt
+43
-16
appveyor.yml
appveyor.yml
+2
-2
No files found.
CMakeLists.txt
View file @
d8943b0c
...
...
@@ -33,22 +33,11 @@ PROJECT(MySQL)
# in RPM's:
#set(CPACK_RPM_SPEC_MORE_DEFINE "%define __spec_install_post /bin/true")
IF
(
POLICY CMP0022
)
CMAKE_POLICY
(
SET CMP0022 NEW
)
ENDIF
()
IF
(
POLICY CMP0048
)
CMAKE_POLICY
(
SET CMP0048 NEW
)
ENDIF
()
IF
(
POLICY CMP0054
)
CMAKE_POLICY
(
SET CMP0054 NEW
)
ENDIF
()
IF
(
POLICY CMP0075
)
CMAKE_POLICY
(
SET CMP0075 NEW
)
ENDIF
()
IF
(
POLICY CMP0069
)
CMAKE_POLICY
(
SET CMP0069 NEW
)
ENDIF
()
FOREACH
(
p CMP0022 CMP0046 CMP0040 CMP0048 CMP0054 CMP0075 CMP0069
)
IF
(
POLICY
${
p
}
)
CMAKE_POLICY
(
SET
${
p
}
NEW
)
ENDIF
()
ENDFOREACH
()
MESSAGE
(
STATUS
"Running cmake version
${
CMAKE_VERSION
}
"
)
...
...
@@ -563,3 +552,41 @@ IF(NON_DISTRIBUTABLE_WARNING)
MESSAGE
(
WARNING
"
You have linked MariaDB with
${
NON_DISTRIBUTABLE_WARNING
}
libraries! You may not distribute the resulting binary. If you do, you will put yourself into a legal problem with the Free Software Foundation."
)
ENDIF
()
IF
(
NOT WITHOUT_SERVER
)
# Define target for minimal mtr-testable build
ADD_CUSTOM_TARGET
(
minbuild
)
ADD_DEPENDENCIES
(
minbuild
aria_chk
aria_pack
mariadb
mariadb-admin
mariadb-binlog
mariadb-check
mariadb-client-test
mariadb-conv
mariadb-dump
mariadb-import
mariadb-plugin
mariadb-show
mariadb-slap
mariadb-test
mariadb-tzinfo-to-sql
mariadb-upgrade
mariadbd
my_print_defaults
my_safe_process
myisam_ftdump
myisamchk
myisamlog
myisampack
perror
replace
)
IF
(
WIN32
)
ADD_DEPENDENCIES
(
minbuild echo mariadb-install-db my_safe_kill
)
ENDIF
()
ADD_CUSTOM_TARGET
(
smoketest
COMMAND perl ./mysql-test-run.pl main.1st
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
/mysql-test
)
ADD_DEPENDENCIES
(
smoketest minbuild
)
ENDIF
()
appveyor.yml
View file @
d8943b0c
...
...
@@ -11,9 +11,9 @@ build_script:
-
set BUILD_TYPE=MinSizeRel
-
set GENERATOR=-GNinja
-
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
-
cmake -E time cmake %GENERATOR% .. -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DMYSQL_MAINTAINER_MODE=ERR -DFAST_BUILD=1 -DBISON_EXECUTABLE=C:\cygwin64\bin\bison -D
WITHOUT_DYNAMIC_PLUGINS=1 -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_FEEDBACK=NO -DWITH_UNIT_TESTS=0 -DWITH_MARIABACKUP=0
-
cmake -E time cmake %GENERATOR% .. -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DMYSQL_MAINTAINER_MODE=ERR -DFAST_BUILD=1 -DBISON_EXECUTABLE=C:\cygwin64\bin\bison -D
PLUGIN_PERFSCHEMA=NO -DPLUGIN_FEEDBACK=NO
-
set /A jobs=2*%NUMBER_OF_PROCESSORS%
-
cmake -E time cmake --build . -j %jobs% --config %BUILD_TYPE%
-
cmake -E time cmake --build . -j %jobs% --config %BUILD_TYPE%
--target minbuild
test_script
:
-
set PATH=C:\Strawberry\perl\bin;%PATH%;C:\Program Files (x86)\Windows Kits\10\Debuggers\x64
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment