travis: Use a fix revision for Botan and speed up subsequent builds via ccache
This commit is contained in:
parent
24af02b00d
commit
1bbb736edc
|
@ -7,6 +7,8 @@ compiler:
|
||||||
- gcc
|
- gcc
|
||||||
- clang
|
- clang
|
||||||
|
|
||||||
|
cache: ccache
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- travis_retry ./scripts/test.sh deps
|
- travis_retry ./scripts/test.sh deps
|
||||||
- travis_retry ./scripts/test.sh pydeps
|
- travis_retry ./scripts/test.sh pydeps
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
|
|
||||||
build_botan()
|
build_botan()
|
||||||
{
|
{
|
||||||
|
# same revision used in the build recipe of the testing environment
|
||||||
|
BOTAN_REV=1872f899716854927ecc68022fac318735be8824
|
||||||
BOTAN_DIR=$TRAVIS_BUILD_DIR/../botan
|
BOTAN_DIR=$TRAVIS_BUILD_DIR/../botan
|
||||||
|
|
||||||
# if the leak detective is enabled we have to disable threading support
|
# if the leak detective is enabled we have to disable threading support
|
||||||
|
@ -15,8 +17,10 @@ build_botan()
|
||||||
fi
|
fi
|
||||||
# disable some larger modules we don't need for the tests
|
# disable some larger modules we don't need for the tests
|
||||||
BOTAN_CONFIG="$BOTAN_CONFIG --disable-modules=pkcs11,tls,x509,xmss"
|
BOTAN_CONFIG="$BOTAN_CONFIG --disable-modules=pkcs11,tls,x509,xmss"
|
||||||
git clone --depth 1 https://github.com/randombit/botan.git $BOTAN_DIR &&
|
|
||||||
|
git clone https://github.com/randombit/botan.git $BOTAN_DIR &&
|
||||||
cd $BOTAN_DIR &&
|
cd $BOTAN_DIR &&
|
||||||
|
git checkout $BOTAN_REV &&
|
||||||
python ./configure.py --amalgamation $BOTAN_CONFIG &&
|
python ./configure.py --amalgamation $BOTAN_CONFIG &&
|
||||||
make -j4 libs >/dev/null &&
|
make -j4 libs >/dev/null &&
|
||||||
sudo make install >/dev/null &&
|
sudo make install >/dev/null &&
|
||||||
|
|
Loading…
Reference in New Issue