dfc546183d
Reviewers: teon.banek Reviewed By: teon.banek Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D2671
111 lines
2.6 KiB
YAML
111 lines
2.6 KiB
YAML
- name: Diff build
|
|
project: ^mg-master-diff$
|
|
commands: |
|
|
# Activate toolchain
|
|
export PATH=/opt/toolchain-v1/bin:$PATH
|
|
export LD_LIBRARY_PATH=/opt/toolchain-v1/lib:/opt/toolchain-v1/lib64
|
|
|
|
# Copy untouched repository to parent folder.
|
|
cd ..
|
|
cp -r memgraph parent
|
|
cd memgraph
|
|
|
|
# Initialize and create documentation.
|
|
TIMEOUT=1200 ./init
|
|
doxygen Doxyfile
|
|
|
|
# Remove default build directory.
|
|
rm -r build
|
|
|
|
# Build debug binaries.
|
|
mkdir build_debug
|
|
cd build_debug
|
|
cmake ..
|
|
TIMEOUT=1200 make -j$THREADS
|
|
|
|
# Build coverage binaries.
|
|
cd ..
|
|
mkdir build_coverage
|
|
cd build_coverage
|
|
cmake -DTEST_COVERAGE=ON ..
|
|
TIMEOUT=1200 make -j$THREADS memgraph__unit
|
|
|
|
# Build release binaries.
|
|
cd ..
|
|
mkdir build_release
|
|
cd build_release
|
|
cmake -DCMAKE_BUILD_TYPE=release ..
|
|
TIMEOUT=1200 make -j$THREADS
|
|
|
|
# Build community binaries.
|
|
cd ..
|
|
mkdir build_community
|
|
cd build_community
|
|
cmake -DCMAKE_BUILD_TYPE=release -DMG_ENTERPRISE=OFF ..
|
|
TIMEOUT=1200 make -j$THREADS
|
|
cd ..
|
|
|
|
# Checkout to parent commit and initialize.
|
|
cd ../parent
|
|
git checkout HEAD~1
|
|
TIMEOUT=1200 ./init
|
|
|
|
# Build parent release binaries.
|
|
mkdir build_release
|
|
cd build_release
|
|
cmake -DCMAKE_BUILD_TYPE=release ..
|
|
TIMEOUT=1200 make -j$THREADS memgraph memgraph__macro_benchmark
|
|
|
|
|
|
# release build is the default one
|
|
- name: Release build
|
|
commands: |
|
|
# Activate toolchain
|
|
export PATH=/opt/toolchain-v1/bin:$PATH
|
|
export LD_LIBRARY_PATH=/opt/toolchain-v1/lib:/opt/toolchain-v1/lib64
|
|
|
|
# Initialize and create documentation.
|
|
TIMEOUT=1200 ./init
|
|
doxygen Doxyfile
|
|
|
|
# Remove default build directory.
|
|
rm -r build
|
|
|
|
# Build debug binaries.
|
|
mkdir build_debug
|
|
cd build_debug
|
|
cmake ..
|
|
TIMEOUT=1200 make -j$THREADS
|
|
|
|
# Build coverage binaries.
|
|
cd ..
|
|
mkdir build_coverage
|
|
cd build_coverage
|
|
cmake -DTEST_COVERAGE=ON ..
|
|
TIMEOUT=1200 make -j$THREADS memgraph__unit
|
|
|
|
# Build release binaries.
|
|
cd ..
|
|
mkdir build_release
|
|
cd build_release
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DUSE_READLINE=OFF ..
|
|
TIMEOUT=1200 make -j$THREADS
|
|
|
|
# Create Debian package.
|
|
mkdir output
|
|
cd output
|
|
cpack -G DEB --config ../CPackConfig.cmake
|
|
cd ..
|
|
|
|
# Build community binaries.
|
|
cd ..
|
|
mkdir build_community
|
|
cd build_community
|
|
cmake -DCMAKE_BUILD_TYPE=release -DMG_ENTERPRISE=OFF ..
|
|
TIMEOUT=1200 make -j$THREADS
|
|
|
|
# Create Debian package.
|
|
mkdir output
|
|
cd output
|
|
cpack -G DEB --config ../CPackConfig.cmake
|