74ec7b04ff
- eac: allow CA without EF.CardSecurity - sc-hsm: implemented CA based on document PKI - sc-hsm: adds receive limit for SoC card - introduces dedicated card type for SoC card - md: integrate card's PIN pad capabilities - installer: added SC-HSM SoC card to registry - pkcs15-tool: Added support for PIN entry on card - change/unblock PIN: add support for PIN entry on card - added OpenPACE to macOS build - travis-ci: install gengetopt/help2man via brew - sc-hsm: Cache EF.C_DevAut - sc-hsm: Prevent unnecessary applet selection and state resets - sc-hsm: added support for session pin - sc-hsm: avoid multiple AID selection - sc-hsm: Use the information from match_card for all subsequent selections of the applet - sc-hsm: cache optional files as empty files (Decoding the files will reveal that they were not existing prior caching. This avoids selecting the file though we have already tried to cache the file before.) - use dedicated directory for CVC trust anchors - appveyor: added OpenPACE to windows build
104 lines
3.0 KiB
YAML
104 lines
3.0 KiB
YAML
language: c
|
|
|
|
sudo: false
|
|
|
|
addons:
|
|
apt_packages:
|
|
- binutils-mingw-w64-i686
|
|
- binutils-mingw-w64-x86-64
|
|
- docbook-xsl
|
|
- gcc-mingw-w64-i686
|
|
- gcc-mingw-w64-x86-64
|
|
- libpcsclite-dev
|
|
- mingw-w64
|
|
- wine
|
|
- xsltproc
|
|
- gengetopt
|
|
- help2man
|
|
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
|
|
|
|
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="
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
include:
|
|
- compiler: clang
|
|
os: osx
|
|
- compiler: gcc
|
|
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
|
|
env: HOST=i686-w64-mingw32
|
|
|
|
before_install:
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
|
brew update;
|
|
brew uninstall libtool;
|
|
brew install libtool;
|
|
brew install gengetopt help2man;
|
|
fi
|
|
|
|
before_script:
|
|
# we run a weekly cron job in travis on the coverity branch
|
|
# just synchronize it with master to get a new report
|
|
- if [ "${COVERITY_SCAN_BRANCH}" == 1 ]; then
|
|
git reset --hard origin/master;
|
|
fi
|
|
- ./bootstrap
|
|
- if [ -z "$HOST" ]; then
|
|
CFLAGS="-Werror" ./configure $ENABLE_DOC --enable-dnie-ui;
|
|
else
|
|
if [ ! -f "$(winepath 'C:/Program Files (x86)/Inno Setup 5/ISCC.exe')" ]; then
|
|
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16;
|
|
export DISPLAY=:99.0;
|
|
wget http://files.jrsoftware.org/is/5/isetup-5.5.6.exe;
|
|
wine isetup-5.5.6.exe /SILENT /VERYSILENT /SP- /SUPPRESSMSGBOXES /NORESTART;
|
|
fi;
|
|
unset CC;
|
|
unset CXX;
|
|
./configure --host=$HOST --disable-openssl --disable-readline --disable-zlib --prefix=${TRAVIS_BUILD_DIR}/win32/opensc || cat config.log;
|
|
fi
|
|
|
|
script:
|
|
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then
|
|
if [ $TRAVIS_OS_NAME == osx ]; then
|
|
./MacOSX/build;
|
|
else
|
|
make;
|
|
fi;
|
|
fi
|
|
- if [ -z "$HOST" -a "${COVERITY_SCAN_BRANCH}" != 1 ]; then
|
|
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
|
|
|
|
after_script:
|
|
# kill process started during compilation to finish the build, see
|
|
# https://github.com/moodlerooms/moodle-plugin-ci/issues/33 for details
|
|
- if [ ! -z "$HOST" ]; then
|
|
killall services.exe;
|
|
fi
|
|
|
|
cache: ccache
|