opensc/.travis.yml

86 lines
2.5 KiB
YAML
Raw Normal View History

2015-01-21 15:57:02 +00:00
language: C
sudo: required
2015-01-21 15:57:02 +00:00
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "UkHn7wy4im8V1nebCWbAetnDSOLRUbOlF6++ovk/7Bnso1/lnhXHelyzgRxfD/oI68wm9nnRV+RQEZ9+72Ug1CyvHxyyxxkwal/tPeHH4B/L+aGdPi0id+5OZSKIm77VP3m5s102sJMJgH7DFd03+nUd0K26p0tk8ad4j1geV4c="
2015-01-21 15:57:02 +00:00
matrix:
include:
- compiler: clang
2015-03-31 22:13:19 +00:00
os: osx
2015-01-21 15:57:02 +00:00
- compiler: gcc
2015-03-31 22:13:19 +00:00
os: osx
- compiler: clang
os: linux
env: ENABLE_DOC=--enable-doc
- compiler: gcc
os: linux
env: ENABLE_DOC=--enable-doc
- os: linux
env: HOST=x86_64-w64-mingw32
- os: linux
2015-01-21 15:57:02 +00:00
env: HOST=i686-w64-mingw32
before_install:
- if [ $TRAVIS_OS_NAME == linux ]; then
2015-03-31 12:29:42 +00:00
sudo apt-get update || true;
if [ ! -z "$HOST" ]; then
export DISPLAY=:99.0;
sudo /etc/init.d/xvfb start;
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16;
fi
2015-01-21 15:57:02 +00:00
fi
install:
- if [ $TRAVIS_OS_NAME == linux ]; then
if [ -z "$HOST" ]; then
sudo apt-get install libpcsclite-dev xsltproc docbook-xsl;
elif [ "${HOST}" == i686-w64-mingw32 ]; then
sudo apt-get install wine mingw-w64 binutils-mingw-w64-i686 gcc-mingw-w64-i686;
elif [ "${HOST}" == x86_64-w64-mingw32 ]; then
sudo apt-get install wine mingw-w64 binutils-mingw-w64-x86-64 gcc-mingw-w64-x86-64;
2015-01-21 15:57:02 +00:00
fi
fi
before_script:
- ./bootstrap
- if [ -z "$HOST" ]; then
2015-03-31 23:07:05 +00:00
./configure $ENABLE_DOC --enable-dnie-ui;
2015-01-21 15:57:02 +00:00
else
wget http://files.jrsoftware.org/is/5/isetup-5.5.6.exe;
wine isetup-5.5.6.exe /SILENT /VERYSILENT /SP- /SUPPRESSMSGBOXES /NORESTART;
2015-01-21 15:57:02 +00:00
unset CC;
unset CXX;
./configure --host=$HOST --disable-openssl --prefix=${TRAVIS_BUILD_DIR}/win32/opensc;
2015-01-21 15:57:02 +00:00
fi
addons:
coverity_scan:
project:
name: "OpenSC/OpenSC"
description: "Build submitted via Travis CI"
notification_email: viktor.tarasov@gmail.com
build_command: "make -j 4"
branch_pattern: coverity_scan
script:
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then
2015-03-31 22:13:19 +00:00
if [ $TRAVIS_OS_NAME == osx ]; then
./MacOSX/build;
else
make;
fi;
2015-01-21 15:57:02 +00:00
fi
- if [ -z "$HOST" -a "${COVERITY_SCAN_BRANCH}" != 1 ]; then
2015-01-21 15:57:02 +00:00
make check;
make dist;
fi
- if [ ! -z "$HOST" -a "${COVERITY_SCAN_BRANCH}" != 1 ]; then
make install;
wine "C:/Program Files (x86)/Inno Setup 5/ISCC.exe" win32/OpenSC.iss;
fi