2020-02-09 14:04:58 +00:00
|
|
|
dist: bionic
|
|
|
|
|
|
|
|
language: c
|
|
|
|
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
update: true
|
|
|
|
packages:
|
|
|
|
- build-essential
|
|
|
|
- cmake
|
|
|
|
- pkgconf
|
|
|
|
- wget
|
|
|
|
- ca-certificates
|
|
|
|
- openssl
|
|
|
|
- libssl-dev
|
|
|
|
- uuid-dev
|
|
|
|
- udev
|
|
|
|
- gettext
|
|
|
|
- python3
|
|
|
|
- python3-pip
|
|
|
|
- python3-setuptools
|
|
|
|
- python3-wheel
|
2020-02-09 14:09:39 +00:00
|
|
|
- ninja-build
|
2020-03-02 20:55:39 +00:00
|
|
|
- libconfig-dev
|
2020-03-02 21:44:22 +00:00
|
|
|
- valgrind
|
2020-02-09 14:04:58 +00:00
|
|
|
|
2020-03-02 21:31:11 +00:00
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- BUILD_TYPE=Coverage CHECK_TARGET=check
|
|
|
|
- BUILD_TYPE=Debug CHECK_TARGET=memcheck
|
|
|
|
- BUILD_TPYE=Release CHECK_TARGET=check
|
|
|
|
- BUILD_TYPE=MinSizeRel CHECK_TARGET=check
|
|
|
|
|
2020-02-09 14:04:58 +00:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
- mkdir .deps
|
|
|
|
- cd .deps
|
|
|
|
# libfuse
|
2020-02-09 14:14:55 +00:00
|
|
|
- sudo pip3 install --system meson
|
2020-02-09 14:04:58 +00:00
|
|
|
- wget https://github.com/libfuse/libfuse/archive/fuse-3.9.0.tar.gz -O fuse.tar.gz
|
|
|
|
- tar -xf fuse.tar.gz
|
|
|
|
- cd libfuse-fuse-3.9.0
|
|
|
|
- mkdir .build
|
|
|
|
- cd .build
|
|
|
|
- meson ..
|
|
|
|
- ninja
|
2020-02-09 14:14:55 +00:00
|
|
|
- sudo ninja install
|
2020-02-09 14:04:58 +00:00
|
|
|
- cd ..
|
|
|
|
- cd ..
|
|
|
|
# libwebsockets
|
|
|
|
- wget https://github.com/warmcat/libwebsockets/archive/v3.2.0.tar.gz -O libwebsockets.tar.gz
|
|
|
|
- tar -xf libwebsockets.tar.gz
|
|
|
|
- cd libwebsockets-3.2.0
|
|
|
|
- mkdir .build
|
|
|
|
- cd .build
|
|
|
|
- cmake ..
|
|
|
|
- make
|
2020-02-09 14:14:55 +00:00
|
|
|
- sudo make install
|
2020-02-09 14:04:58 +00:00
|
|
|
- cd ..
|
|
|
|
- cd ..
|
|
|
|
# jansson
|
|
|
|
- wget https://github.com/akheron/jansson/archive/v2.12.tar.gz -O jansson.tar.gz
|
|
|
|
- tar -xf jansson.tar.gz
|
|
|
|
- cd jansson-2.12
|
|
|
|
- mkdir .build
|
|
|
|
- cd .build
|
|
|
|
- cmake ..
|
|
|
|
- make
|
2020-02-09 14:14:55 +00:00
|
|
|
- sudo make install
|
2020-02-09 14:04:58 +00:00
|
|
|
- cd ..
|
|
|
|
- cd ..
|
|
|
|
# libwebfuse
|
2020-03-01 19:25:11 +00:00
|
|
|
- wget https://github.com/falk-werner/webfuse/archive/v0.2.0.tar.gz -O webfuse.tar.gz
|
2020-02-09 14:04:58 +00:00
|
|
|
- tar -xf webfuse.tar.gz
|
2020-03-01 19:25:11 +00:00
|
|
|
- cd webfuse-0.2.0
|
2020-02-09 14:04:58 +00:00
|
|
|
- mkdir .build
|
|
|
|
- cd .build
|
2020-03-01 19:25:11 +00:00
|
|
|
- cmake -DWITHOUT_TESTS=ON ..
|
2020-02-09 14:04:58 +00:00
|
|
|
- make
|
2020-02-09 14:14:55 +00:00
|
|
|
- sudo make install
|
2020-02-09 14:04:58 +00:00
|
|
|
- cd ..
|
|
|
|
- cd ..
|
2020-03-02 21:37:20 +00:00
|
|
|
# gtest
|
|
|
|
- wget https://github.com/google/googletest/archive/release-1.10.0.tar.gz
|
|
|
|
- tar -xf release-1.10.0.tar.gz
|
|
|
|
- cd googletest-release-1.10.0
|
|
|
|
- mkdir .build
|
|
|
|
- cd .build
|
|
|
|
- cmake ..
|
|
|
|
- make
|
|
|
|
- sudo make install
|
|
|
|
- cd ..
|
|
|
|
- cd ..
|
2020-02-09 14:04:58 +00:00
|
|
|
- cd ..
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2020-03-02 21:31:11 +00:00
|
|
|
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
|
2020-02-09 14:04:58 +00:00
|
|
|
|
|
|
|
script:
|
2020-03-15 21:57:36 +00:00
|
|
|
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib:/usr/local/lib/x86_64-linux-gnu"
|
2020-03-15 21:45:57 +00:00
|
|
|
- make $CHECK_TARGET
|
2020-03-02 21:31:11 +00:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|