blob: 710f68b5d42aea03e39e5e91009b54fac27aafb4 [file] [log] [blame]
Marc Kupietz7cf5d8a2021-03-22 17:52:52 +01001image: gcc
2
3build-and-test:
4 stage: build
5 before_script:
6 - pwd
7 - source `find .. -name section_helper.sh`
8
9 - start_section install_linux_packages "Installing missing Linux packages"
10 - apt update && apt -y install cmake libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev libomp-dev
11 - end_section install_linux_packages
12
13 - start_section install_rocksdb_static "Building and installing rocksdb-static"
14 - curl -L https://github.com/facebook/rocksdb/archive/refs/tags/v5.11.3.tar.gz | tar zx
15 - cd rocksdb-5.11.3
16 - export PROCS=$(cat /proc/cpuinfo | grep -c processor)
17 - make -j $PROCS static_lib DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
18 - make install-static DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
19 - end_section install_rocksdb_static
20
21 - start_section install_rocksdb_shared "Building and installing rocksdb-shared"
22 - make -j $PROCS shared_lib DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
23 - make install-shared DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
Marc Kupietz3e003e02022-04-10 17:11:32 +020024 - ldconfig
Marc Kupietz7cf5d8a2021-03-22 17:52:52 +010025 - cd ..
26 - end_section rocksdb_shared
27
28
29 script:
30 - start_section install_collocatordb "Building and installing collocatordb"
Marc Kupietz7cf5d8a2021-03-22 17:52:52 +010031 - mkdir -p build
32 - cd build
33 - cmake ..
34 - make
35 - make install
Marc Kupietz3e003e02022-04-10 17:11:32 +020036 - ldconfig
Marc Kupietz7cf5d8a2021-03-22 17:52:52 +010037 - ctest --extra-verbose
38 - end_section install_collocatordb
39
40 artifacts:
41 paths:
42 - "*.a"
43 - "*.so.*"
44