Commit e0096c27 authored by Florian Oetke's avatar Florian Oetke
Browse files

enabled travis-ci integration

parent b8c2f61f
#!/bin/sh
#
# Build script for travis-ci.org builds to handle compiles and static
# analysis when ANALYZE=true.
#
if [ $ANALYZE = "true" ]; then
if [ "$CC" = "clang" ]; then
docker exec build scan-build cmake -G "Unix Makefiles" -H/repo -B/build
docker exec build scan-build -enable-checker core.AdjustedReturnValue \
-enable-checker core.AttributeNonNull \
-enable-checker deadcode.DeadStores \
-enable-checker security.insecureAPI.UncheckedReturn \
--status-bugs -v \
cmake --build /build
fi
else
docker exec build cmake -DSF2_BUILD_TESTS=ON -H/repo -B/build
docker exec build cmake --build /build
docker exec build cmake --build /build --target test
fi
sudo: required
language: cpp
compiler:
- gcc
- clang
env:
- ANALYZE=false
- ANALYZE=true
services:
- docker
before_install:
- docker pull lowkey42/build-env:latest
- docker run -e "CXX=$CXX" -e "CC=$CC" -v $TRAVIS_BUILD_DIR:/repo -itd --name build lowkey42/build-env
script:
- source $TRAVIS_BUILD_DIR/.travis.sh
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment