memgraph/apollo_build.yaml
Matej Ferencevic 499ad3ba15 Add initial version of Apollo config files
Summary:
Improve Apollo config files

Add name to apollo_build

Remove old generate script from build

Add build_release symlink to release build

Rename 'args' to 'arguments'

Add run definition for cppcheck

Host doxygen documentation

Reviewers: teon.banek

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1095
2018-01-10 14:46:10 +01:00

85 lines
2.0 KiB
YAML

- name: Diff build
project: ^mg-master-diff$
commands: |
cd ..
cp -r memgraph parent
cd memgraph
TIMEOUT=600 ./init
doxygen Doxyfile
cd build
cmake -DTOOLS=ON -DTEST_COVERAGE=ON ..
TIMEOUT=1000 make -j$THREADS
cd ..
mkdir build_release
cd build_release
cmake -DCMAKE_BUILD_TYPE=release ..
TIMEOUT=1000 make -j$THREADS memgraph memgraph__macro_benchmark memgraph__stress
cd ../../parent
git checkout HEAD~1
TIMEOUT=600 ./init
mkdir build_release
cd build_release
cmake -DCMAKE_BUILD_TYPE=release ..
TIMEOUT=1000 make -j$THREADS memgraph memgraph__macro_benchmark
# Install tools, because they may be needed to run some benchmarks and tests.
cd ../../memgraph/tools
TIMEOUT=300 ./setup
- name: Debug build
project: ^mg-master-debug$
commands: |
TIMEOUT=600 ./init
doxygen Doxyfile
cd build
cmake -DTOOLS=ON ..
TIMEOUT=1000 make -j$THREADS
cd ..
mkdir build_release
cd build_release
cmake -DCMAKE_BUILD_TYPE=release ..
TIMEOUT=1000 make -j$THREADS memgraph memgraph__macro_benchmark memgraph__stress
# Install tools, because they may be needed to run some benchmarks and tests.
cd ../tools
TIMEOUT=300 ./setup
# release build is the default one
- name: Release build
commands: |
TIMEOUT=600 ./init
doxygen Doxyfile
cd build
cmake -DTOOLS=ON -DCMAKE_BUILD_TYPE=Release -DUSE_READLINE=OFF ..
TIMEOUT=1000 make -j$THREADS
# Create a binary package (which can then be used for Docker image).
mkdir output
cd output
cpack -D CPACK_SET_DESTDIR=ON -G TGZ --config ../CPackConfig.cmake
cpack -G DEB --config ../CPackConfig.cmake
# Create user technical documentation for community site
cd ../../docs/user_technical
#./bundle_community
# Install tools, because they may be needed to run some benchmarks and tests.
cd ../../tools
TIMEOUT=300 ./setup
# Link build to build_release
cd ..
ln -s build build_release