Skip to content

Commit

Permalink
use apt cache and ccache
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmorgner committed Jan 5, 2019
1 parent cd31ed3 commit c55d101
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ matrix:
- compiler: i686-w64-mingw32-gcc
- compiler: x86_64-w64-mingw32-gcc
- env: DO_COVERITY_SCAN=yes
allow_failures:
- compiler: i686-w64-mingw32-gcc
- compiler: x86_64-w64-mingw32-gcc

env:
global:
Expand All @@ -27,22 +24,25 @@ env:
- COVERITY_SCAN_PROJECT_NAME="$TRAVIS_REPO_SLUG"
- SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)

before_install:
- sudo apt-get update
sudo: false

addons:
apt_packages:
- libpcsclite-dev
- libusb-dev
- xutils-dev
- gengetopt
- help2man
- swig
- python-dev
- binutils-mingw-w64
- gcc-mingw-w64
- python-crypto

install:
- if [ "$CC" == i686-w64-mingw32-gcc -o "$CC" == x86_64-w64-mingw32-gcc ]; then
export HOST=${CC%%-gcc};
fi
- if [ $TRAVIS_OS_NAME == linux ]; then
if [ -z "$HOST" ]; then
sudo ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib/x86_64-linux-gnu/libgcc_s.so;
sudo apt-get -qq install libpcsclite-dev libusb-dev xutils-dev gengetopt help2man swig python-dev;
pip install --user pycrypto;
else
sudo apt-get -qq install libpcsclite-dev libusb-dev xutils-dev gengetopt help2man binutils-mingw-w64 gcc-mingw-w64;
fi
fi

before_script:
# virtualsmartcard requires OpenPACE
Expand Down Expand Up @@ -102,3 +102,7 @@ script:
- if [ $TRAVIS_OS_NAME == linux -a -z "$HOST" -a -z "${DO_COVERITY_SCAN}" ]; then
make -C $TRAVIS_BUILD_DIR/ccid;
fi

cache:
apt: true
ccache: true

0 comments on commit c55d101

Please sign in to comment.