memgraph/apollo_build.yaml
Matej Ferencevic 41679b6ec5 Integrate code coverage with Apollo
Reviewers: teon.banek

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1050
2018-01-15 12:20:11 +01:00

92 lines
2.1 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 ..
TIMEOUT=1000 make -j$THREADS
cd ..
mkdir build_coverage
cd build_coverage
cmake -DTEST_COVERAGE=ON ..
TIMEOUT=1000 make -j$THREADS memgraph__unit
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