Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish reports from travis #66

Merged
merged 16 commits into from
Aug 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 59 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,48 @@
sudo: false
language: cpp
before_install:
- |
if $ANALYSIS || $COVERAGE || $DOXYGEN; then
openssl aes-256-cbc -K $encrypted_e845a59f36e1_key -iv $encrypted_e845a59f36e1_iv -in travis/ithipages-publish-key.enc -out ~/.ssh/ithipages-publish-key -d
chmod u=rw,og= ~/.ssh/ithipages-publish-key
echo "Host github.com" >> ~/.ssh/config
echo " IdentityFile ~/.ssh/ithipages-publish-key" >> ~/.ssh/config
( cd /tmp
git clone [email protected]:private-octopus/ithipages.git
cd ithipages
git checkout gh-pages
ls -l
)
fi
addons:
apt:
packages:
- python
- valgrind
- lcov
- doxygen
- graphviz
matrix:
include:
- os: linux
compiler: gcc
env: VALGRIND=true ANALYSIS=true
env: VALGRIND=true ANALYSIS=true COVERAGE=true DOXYGEN=true
- os: linux
compiler: clang
env: VALGRIND=true ANALYSIS=false
env: VALGRIND=true ANALYSIS=false COVERAGE=false DOXYGEN=false
- os: osx
compiler: gcc
env: VALGRIND=false ANALYSIS=false
env: VALGRIND=false ANALYSIS=false COVERAGE=false DOXYGEN=false
- os: osx
compiler: clang
env: VALGRIND=false ANALYSIS=false
env: VALGRIND=false ANALYSIS=false COVERAGE=false DOXYGEN=false
script:
- |
if $VALGRIND ; then
if $COVERAGE ; then
CXXFLAGS="-Wall -Wextra -Wpedantic -Werror -g -fprofile-arcs -ftest-coverage -O0" \
CFLAGS="-Wall -Wextra -Wpedantic -Werror -g -fprofile-arcs -ftest-coverage -O0" \
LDFLAGS="-lgcov --coverage" cmake .
elif $VALGRIND ; then
CXXFLAGS="-Wall -Wextra -Wpedantic -Werror -g" \
CFLAGS="-Wall -Wextra -Wpedantic -Werror -g" cmake .
else
Expand All @@ -43,3 +64,36 @@ script:
scan-build -o /tmp/ithipages/analysis --status-bugs make
)
fi
- |
if $COVERAGE ; then
geninfo . -o ithitest.info
lcov --remove ithitest.info '/usr/include/*' -o ithi.info
if [ $TRAVIS_PULL_REQUEST = "false" ] ; then
THIS_BRANCH=$TRAVIS_BRANCH
else
THIS_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH
fi
mkdir -p /tmp/ithipages/coverage/$THIS_BRANCH
genhtml ithi.info --output-directory /tmp/ithipages/coverage/$THIS_BRANCH
fi
- |
if $DOXYGEN ; then
if [ $TRAVIS_PULL_REQUEST = "false" ] ; then
if [ $TRAVIS_BRANCH = "master" ] ; then
doxygen travis/Doxyfile
fi
fi
fi
after_script:
- |
if $ANALYSIS || $COVERAGE || $DOXYGEN ; then
cp README.md /tmp/ithipages/README.md.orig
( cd /tmp/ithipages
./mkreadme.sh
[ -d analysis ] && git add analysis
[ -d coverage ] && git add coverage
[ -d doxygen ] && git add doxygen
git commit -a -m "update from travis at `date`" \
&& git push
)
fi
Loading