X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ci%2Fappveyor-install.sh;fp=ci%2Fappveyor-install.sh;h=c73e4cb53b814d3777efe612fb30748613ef00c6;hp=0000000000000000000000000000000000000000;hb=dc8aed223cfff0a15065b064082b975b749f0b6e;hpb=d6e082e7c9bd02d887db7bd0a6b16ed632cb743e diff --git a/ci/appveyor-install.sh b/ci/appveyor-install.sh new file mode 100755 index 00000000..c73e4cb5 --- /dev/null +++ b/ci/appveyor-install.sh @@ -0,0 +1,41 @@ +#!/bin/bash +# The PATH to appropriate distro commands must already be set before invoking +# this script +# The following environment variables must be set: +# PLATFORM={i686,x64} +# DISTRO={cygwin,msys2} +# The following environment can optionally be set: +# CYG_MIRROR= +set -eu + +case "${ARCHITECTURE}" in + "x64") + PACKAGE_ARCH="x86_64" + ;; + "x86") + PACKAGE_ARCH="i686" + ;; +esac + +echo "Installing packages..." +case "${DISTRO}" in + "cygwin") + CYG_MIRROR=${CYG_MIRROR:-"http://cygwin.mirror.constant.com"} + setup-x86_64.exe --quiet-mode --no-shortcuts --only-site \ + --site "${CYG_MIRROR}" --packages \ + "mingw64-${PACKAGE_ARCH}-CUnit,mingw64-${PACKAGE_ARCH}-zlib" + ;; + "msys2") + #pacman --noconfirm -Syuu # MSYS2 core update + #pacman --noconfirm -Syuu # MSYS2 normal update + pacman.exe --noconfirm -S \ + mingw-w64-${PACKAGE_ARCH}-clang \ + mingw-w64-${PACKAGE_ARCH}-cunit \ + mingw-w64-${PACKAGE_ARCH}-lld + ;; +esac + +python.exe -m pip install scipy six + +echo "Python3 path: $(type -p python3 2>&1)" +echo "Python3 version: $(python3 -V 2>&1)"