blob: d4c3eab9bc7a2a84239234a74825d8a747f0dd16 [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
24 - cd ..
25 - end_section rocksdb_shared
26
27
28 script:
29 - start_section install_collocatordb "Building and installing collocatordb"
30 - git clone "https://korap.ids-mannheim.de/gerrit/private/collocatordb"
31 - cd collocatordb
32 - mkdir -p build
33 - cd build
34 - cmake ..
35 - make
36 - make install
37 - ctest --extra-verbose
38 - end_section install_collocatordb
39
40 artifacts:
41 paths:
42 - "*.a"
43 - "*.so.*"
44