diff options
Diffstat (limited to 'SoftHSMv2/testing')
-rw-r--r-- | SoftHSMv2/testing/appveyor/APPVEYOR-NOTES.MD | 27 | ||||
-rw-r--r-- | SoftHSMv2/testing/appveyor/appveyor_download_requirements.ps1 | 74 | ||||
-rw-r--r-- | SoftHSMv2/testing/build-botan.sh | 4 | ||||
-rw-r--r-- | SoftHSMv2/testing/travis/travis.sh | 4 |
4 files changed, 105 insertions, 4 deletions
diff --git a/SoftHSMv2/testing/appveyor/APPVEYOR-NOTES.MD b/SoftHSMv2/testing/appveyor/APPVEYOR-NOTES.MD new file mode 100644 index 0000000..b2347b0 --- /dev/null +++ b/SoftHSMv2/testing/appveyor/APPVEYOR-NOTES.MD @@ -0,0 +1,27 @@ +# AppVeyor integration with SoftHSMv2 on GitHub + +This document describes the process of integrating AppVeyor with SoftHSMv2 on GitHub. + +## Integration + +### Add project + +To add the project, click on the following: + +1. New Project +2. GitHub +3. opendnssec -> SoftHSMv2 -> Add + +### Settings + +The following settings where changed. + +#### General + +* Custom configuration .yml file name: .appveyor.yml +* Skip branches without appveyor.yml: check + +## Dependencies + +Prebuilt dependencies (OpenSSL and CppUnit) are currently hosted in a dedicated +repository by [disig/SoftHSM2-AppVeyor](https://github.com/disig/SoftHSM2-AppVeyor/) diff --git a/SoftHSMv2/testing/appveyor/appveyor_download_requirements.ps1 b/SoftHSMv2/testing/appveyor/appveyor_download_requirements.ps1 new file mode 100644 index 0000000..56a0d0b --- /dev/null +++ b/SoftHSMv2/testing/appveyor/appveyor_download_requirements.ps1 @@ -0,0 +1,74 @@ +Add-Type -AssemblyName System.IO.Compression.FileSystem +function Unzip +{ + param([string]$zipfile, [string]$outpath) + + [System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath) +} + +$CURRENT_DIR_PATH = (Get-Item -Path ".\" -Verbose).FullName +$BUILD_DIR = Join-Path $CURRENT_DIR_PATH build + +#prepare directories +Write-Host "Preparing directories" + +$exists = Test-Path build +if ($exists -eq $false) { + mkdir build +} +cd build + +$exists = Test-Path $env:RELEASE_DIR +if ($exists -eq $false) { + mkdir $env:RELEASE_DIR +} + +$exists = Test-Path python +if ($exists -eq $true) { + Remove-Item python -recurse +} + +$exists = Test-Path "$env:CPPUNIT_PATH" +if ($exists -eq $true) { + Remove-Item "$env:CPPUNIT_PATH" -recurse +} + +$exists = Test-Path "$env:CRYPTO_PACKAGE_PATH" +if ($exists -eq $true) { + Remove-Item "$env:CRYPTO_PACKAGE_PATH" -recurse +} + +mkdir python + +Write-Host "Preparing directories - OK" + +Write-Host "Downloading needed tools and dependencies" + +[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls" + +$exists = Test-Path "$env:CRYPTO_PACKAGE_NAME" +if ($exists -eq $false) { + $source = "https://github.com/disig/SoftHSM2-AppVeyor/raw/master/$env:PACKAGE_VERSION_NAME/$env:CRYPTO_PACKAGE" + Invoke-WebRequest $source -OutFile $env:CRYPTO_PACKAGE +} + +$exists = Test-Path "$env:CPPUNIT_PACKAGE" +if ($exists -eq $false) { + $source = "https://github.com/disig/SoftHSM2-AppVeyor/raw/master/$env:CPPUNIT_VERSION_NAME/$env:CPPUNIT_PACKAGE" + Invoke-WebRequest $source -OutFile $env:CPPUNIT_PACKAGE +} + +Write-Host "Downloading needed tools and dependencies - OK" + +Write-Host "Extracting ..." +Unzip "$BUILD_DIR/$env:CRYPTO_PACKAGE" "$BUILD_DIR" + +Unzip "$BUILD_DIR/$env:CPPUNIT_PACKAGE" "$BUILD_DIR" + +dir + +dir "$env:PYTHON_PATH" +dir "$env:CRYPTO_PACKAGE_PATH" +dir "$env:CPPUNIT_PATH" + +cd $CURRENT_DIR_PATH diff --git a/SoftHSMv2/testing/build-botan.sh b/SoftHSMv2/testing/build-botan.sh index fc31217..2f8d10d 100644 --- a/SoftHSMv2/testing/build-botan.sh +++ b/SoftHSMv2/testing/build-botan.sh @@ -1,11 +1,11 @@ #!/usr/bin/env bash source `dirname "$0"`/lib.sh && init || exit 1 -BOTAN="Botan-2.4.0" +BOTAN="Botan-2.5.0" BOTAN_URL="https://botan.randombit.net/releases/$BOTAN.tgz" BOTAN_FILENAME="$BOTAN.tgz" BOTAN_HASH_TYPE="sha1" -BOTAN_HASH="212587ae2458d51052c496fbcc79dc4162d33349" +BOTAN_HASH="f422ba87f99c070fdcc3347943cb1a63add2e028" check_if_built botan && exit 0 start_build botan diff --git a/SoftHSMv2/testing/travis/travis.sh b/SoftHSMv2/testing/travis/travis.sh index 6a1ca1f..826fbc4 100644 --- a/SoftHSMv2/testing/travis/travis.sh +++ b/SoftHSMv2/testing/travis/travis.sh @@ -6,11 +6,11 @@ CONF_OBJSTORE="" case $CRYPTO in botan) CONF_CRYPTO="$CONF_CRYPTO --with-crypto-backend=botan --with-botan=/usr" - CONF_CRYPTO="$CONF_CRYPTO --disable-ecc --disable-gost" + CONF_CRYPTO="$CONF_CRYPTO --disable-ecc --disable-eddsa --disable-gost" ;; openssl) CONF_CRYPTO="$CONF_CRYPTO --with-crypto-backend=openssl --with-openssl=/usr" - CONF_CRYPTO="$CONF_CRYPTO --disable-gost" + CONF_CRYPTO="$CONF_CRYPTO --disable-eddsa --disable-gost" openssl version -a ;; *) |