-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
43 lines (42 loc) · 1.75 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: cpp
dist: jammy
compiler:
- gcc
os:
- linux
before_install:
- sudo apt-get update
- sudo apt-get -y install locales
- sudo locale-gen $LANG
- sudo apt-get -y install apt-transport-https ca-certificates gnupg software-properties-common wget
- sudo rm -rf /usr/local/cmake-*
- wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
- sudo apt-add-repository -y 'deb https://apt.kitware.com/ubuntu/ jammy main'
- sudo apt-get update
- sudo apt-get -y install cmake cmake-data libmysql++3v5
- sudo cmake --version
- sudo apt-get -y install gcc g++ cppcheck
- sudo apt-get -y install zlib1g-dev libbz2-dev libgmp-dev
- sudo apt-get -y install libxapian-dev graphviz # libboost-all-dev
- sudo apt-get -y install libreadline-dev libncurses5-dev
- sudo apt-get -y install libzmq3-dev libssl-dev libffi-dev # libzmqpp-dev
- sudo apt-get -y install sqlite3 libsqlite3-dev
- sudo apt-get -y install libmariadb-dev-compat libmariadb-dev
- sudo apt-get -y install postgresql-client # postgresql-server-dev-all
- sudo apt-get -y install libicu-dev libprotobuf-dev protobuf-compiler
- sudo apt-get -y install python3.10 python3.10-dev libpython3.10 libpython3.10-dev
- sudo apt-get -y install doxygen ghostscript texlive-latex-recommended
- sudo apt-get -y install libboost1.74-all-dev libsoci-dev
script:
- mkdir build
- pushd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE:STRING=Debug -DINSTALL_DOC:BOOL=ON -DRUN_GCOV:BOOL=OFF -DLIB_SUFFIX= ..
- sudo make install
- /usr/bin/opentrep-indexer
- /usr/bin/opentrep-searcher
branches:
only:
- master
- "/^opentrep-\\d+\\./"
env:
- LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8"