Files
GmSSL/.travis.yml
2017-04-14 13:16:47 +08:00

71 lines
1.3 KiB
YAML

dist: trusty
sudo: required
language: c
cache: ccache
git:
submodules: false
before_install:
- if [ -n "$COVERALLS" ]; then
pip install --user cpp-coveralls;
fi;
- if expr "$CONFIG_OPTS" ":" ".*enable-external-tests" > /dev/null; then
git submodule update --init --recursive;
fi;
addons:
apt:
packages:
- ccache
- golang-1.6
os:
- linux
compiler:
- clang
- gcc
env:
- CONFIG_OPTS="" DESTDIR="_install" TESTS="-test_fuzz"
-
before_script:
- env
- if [ -n "$DESTDIR" ]; then
sh .travis-create-release.sh $TRAVIS_OS_NAME;
tar -xvzf _srcdist.tar.gz;
mkdir _build;
cd _build;
srcdir=../_srcdist;
top=..;
else
srcdir=.;
top=.;
fi
- cd $top
script:
- if [ -z "$BUILDONLY" ]; then
make="make -s";
else
make="make";
fi
- top=${PWD}
- if [ -n "$DESTDIR" ]; then
cd _build;
fi
- $make
- $make tests;
- if [ -n "$DESTDIR" ]; then
mkdir "$top/$DESTDIR";
$make install install_docs DESTDIR="$top/$DESTDIR";
fi
- cd $top
after_success:
- if [ -n "$COVERALLS" ]; then
coveralls -b . --gcov gcov-5 --gcov-options '\-lp';
fi;