2015-11-04 18:02:40 +00:00
|
|
|
language: c
|
|
|
|
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
|
2017-03-17 20:40:33 +00:00
|
|
|
dist: trusty
|
2015-11-04 18:02:40 +00:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libcunit1-dev
|
2016-10-07 22:24:33 +00:00
|
|
|
- libaio-dev
|
|
|
|
- libssl-dev
|
|
|
|
|
|
|
|
before_script:
|
2017-02-27 17:37:53 +00:00
|
|
|
- export MAKEFLAGS="-j$(nproc)"
|
2017-04-24 22:44:42 +00:00
|
|
|
- if [ "$CC" = gcc ]; then
|
|
|
|
wget https://downloads.sourceforge.net/project/astyle/astyle/astyle%203.0/astyle_3.0_linux.tar.gz;
|
|
|
|
tar xf astyle_3.0_linux.tar.gz;
|
|
|
|
pushd astyle/build/gcc;
|
|
|
|
make;
|
|
|
|
export PATH=$PWD/bin:$PATH;
|
|
|
|
popd;
|
|
|
|
fi
|
2017-05-17 23:44:20 +00:00
|
|
|
- git submodule update --init
|
2015-11-04 18:02:40 +00:00
|
|
|
|
2017-01-24 22:46:33 +00:00
|
|
|
script:
|
2017-04-24 22:44:42 +00:00
|
|
|
- ./scripts/check_format.sh
|
2017-05-17 23:44:20 +00:00
|
|
|
- ./configure --enable-werror
|
|
|
|
- make
|
2017-01-24 22:46:33 +00:00
|
|
|
- ./unittest.sh
|