blob: 856bfb63b844dbb70926fe7eb5bf66c9ede3918a [file] [log] [blame]
Marc Kupietz97ada392022-04-10 14:06:00 +02001image: gcc
2
3build:
4 stage: build
5 before_script:
6 - apt update && apt -y install cmake libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev libomp-dev
7 - curl -L https://github.com/facebook/rocksdb/archive/refs/tags/v5.11.3.tar.gz | tar zx
8 - cd rocksdb-5.11.3
9 - export PROCS=$(cat /proc/cpuinfo | grep -c processor)
10 - make -j $PROCS static_lib DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
11 - make install-static DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
12 - make -j $PROCS shared_lib DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
13 - make install-shared DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
14 - cd ..
15 - git clone "https://korap.ids-mannheim.de/gerrit/private/collocatordb"
16 - cd collocatordb
17 - mkdir -p build
18 - cd build
19 - cmake ..
20 - make && make install # && ctest --extra-verbose
21 script:
22 - mkdir build
23 - cd build
24 - cmake ..
25 - make
26 artifacts:
27 paths:
28 - build/dereko2vec
29 cache:
30 paths:
31 - "*.o"
32
33# run tests using the binary built before
34test:
35 stage: test
36 script:
37 - ctest --extra-verbose
38