Fix ci script
Change-Id: Ie3f52b3e6c716510725ea21a1748ee8e102ff607
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 856bfb6..f523963 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,29 +3,53 @@
build:
stage: build
before_script:
+ - pwd
+ - source `find .. -name section_helper.sh`
+
+ - start_section install_linux_packages "Installing missing Linux packages"
- apt update && apt -y install cmake libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev libomp-dev
+ - end_section install_linux_packages
+
+ - start_section install_rocksdb_static "Building and installing rocksdb-static"
- curl -L https://github.com/facebook/rocksdb/archive/refs/tags/v5.11.3.tar.gz | tar zx
- cd rocksdb-5.11.3
- export PROCS=$(cat /proc/cpuinfo | grep -c processor)
- make -j $PROCS static_lib DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
- make install-static DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
+ - end_section install_rocksdb_static
+
+ - start_section install_rocksdb_shared "Building and installing rocksdb-shared"
- make -j $PROCS shared_lib DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
- make install-shared DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
- cd ..
+ - end_section rocksdb_shared
+
+ - start_section install_collocatordb "Building and installing collocatordb"
- git clone "https://korap.ids-mannheim.de/gerrit/private/collocatordb"
- cd collocatordb
- mkdir -p build
- cd build
- cmake ..
- - make && make install # && ctest --extra-verbose
+ - make
+ - make install # && ctest --extra-verbose
+ - end_section install_collocatordb
+ - cd ../..
+
script:
+ - start_section install_dereko2vec "Building and installing dereko2vec"
+ - pwd
- mkdir build
- cd build
- cmake ..
- make
+ - end_section install_dereko2vec
+
artifacts:
paths:
- build/dereko2vec
+ - *.so
+ - *.a
+
cache:
paths:
- "*.o"