Marc Kupietz | 97ada39 | 2022-04-10 14:06:00 +0200 | [diff] [blame^] | 1 | image: gcc |
| 2 | |
| 3 | build: |
| 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 |
| 34 | test: |
| 35 | stage: test |
| 36 | script: |
| 37 | - ctest --extra-verbose |
| 38 | |