Ticket #765: Add PyS2OPC to AppVeyor and add the wheel .whl to the artefacts

parent 99c806c9
Pipeline #159534514 failed with stages
in 58 seconds
......@@ -13,6 +13,7 @@ install:
# Check that we have the expected version and architecture for Python
- "pip --version"
- "pip install cryptography==2.0.3 pycparser==2.18 six==1.11.0 asn1crypto==0.23.0 cffi==1.11.2 python_dateutil==2.6.1 argparse==1.4.0 pytz==2017.2 idna==2.6 lxml==4.0.0"
- "pip install --upgrade wheel==0.34.2 setuptools==47.3.1"
- "pip install freeopcua==0.90.6"
test_script:
......@@ -32,6 +33,7 @@ test_script:
- set S2OPC_CLIENTSERVER_ONLY=1
- set CONFIG=RelWithDebInfo
- set LIBS_DIRS=%CHECK_BUILD_DIR%;%EXPAT_INSTALL_DIR%
- set WITH_PYS2OPC=1
# download and build libcheck
- cd %ROOT_DIR%
......@@ -74,7 +76,7 @@ test_script:
copy %MBEDTLS_DIR%\build\library\%CONFIG%\mbedx509.lib lib
copy %MBEDTLS_DIR%\build\library\%CONFIG%\mbedcrypto.lib lib
copy %EXPAT_INSTALL_DIR%\lib\libexpatMD.lib lib\libexpat.lib
cmake -DS2OPC_CLIENTSERVER_ONLY=%S2OPC_CLIENTSERVER_ONLY% -DMBEDTLS_INCLUDE_DIR=%MBEDTLS_BUILD_DIR%/../include -DMBEDTLS_LIBRARY=%MBEDTLS_BUILD_DIR%/library/%CONFIG%/mbedtls.lib -DMBEDX509_LIBRARY=%MBEDTLS_BUILD_DIR%/library/%CONFIG%/mbedx509.lib -DMBEDCRYPTO_LIBRARY=%MBEDTLS_BUILD_DIR%/library/%CONFIG%/mbedcrypto.lib -DCMAKE_PREFIX_PATH=%LIBS_DIRS% .. -G "Visual Studio 15 2017 Win64"
cmake -DWITH_NANO_EXTENDED=on -DWITH_PYS2OPC=%WITH_PYS2OPC% -DS2OPC_CLIENTSERVER_ONLY=%S2OPC_CLIENTSERVER_ONLY% -DMBEDTLS_INCLUDE_DIR=%MBEDTLS_BUILD_DIR%/../include -DMBEDTLS_LIBRARY=%MBEDTLS_BUILD_DIR%/library/%CONFIG%/mbedtls.lib -DMBEDX509_LIBRARY=%MBEDTLS_BUILD_DIR%/library/%CONFIG%/mbedx509.lib -DMBEDCRYPTO_LIBRARY=%MBEDTLS_BUILD_DIR%/library/%CONFIG%/mbedcrypto.lib -DCMAKE_PREFIX_PATH=%LIBS_DIRS% -DPYTHON_EXECUTABLE=%PYTHON%\python.exe .. -G "Visual Studio 15 2017 Win64"
cmake --build . --config %CONFIG%
- cd %ROOT_DIR%\build\tests\ClientServer
- "ctest -T test -C %CONFIG% --no-compress-output --test-output-size-passed 65536 --test-output-size-failed 65536 -V"
......@@ -85,6 +87,9 @@ artifacts:
- path: build\bin
name: Binaries
type: zip
- path: build\lib
name: Libraries
type: zip
on_failure:
- ps: $root = Resolve-Path $Env:APPVEYOR_BUILD_FOLDER\build; [IO.Directory]::GetFiles($root.Path, '*.*', 'AllDirectories') | % { Push-AppveyorArtifact $_ -FileName $_.Substring($root.Path.Length + 1) -DeploymentName to-publish }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment