Skip to content

Commit

Permalink
appveyor: fix build command
Browse files Browse the repository at this point in the history
  • Loading branch information
biojppm committed May 24, 2020
1 parent 60c6764 commit a98325e
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,28 +87,30 @@ install:
- cmake --version

build_script:
- md _build_static
- md _build_shared
- md _extern
- echo %generator%
- echo %genarch%
- echo %configuration%
- set C4_EXTERN_DIR=_extern
- set NUM_JOBS=3
- cmake -S .. -B _build_static -DRYML_DEV=ON -DRYML_TEST_SUITE=ON -G "%generator%" %genarch% "-DCMAKE_BUILD_TYPE=%configuration%" "-DCMAKE_INSTALL_PREFIX=../_install_static" -DBUILD_SHARED_LIBS=OFF
- cmake -S .. -B _build_shared -DRYML_DEV=ON -DRYML_TEST_SUITE=ON -G "%generator%" %genarch% "-DCMAKE_BUILD_TYPE=%configuration%" "-DCMAKE_INSTALL_PREFIX=../_install_shared" -DBUILD_SHARED_LIBS=ON
- cmake --build _build_static --config %configuration% --target test-build --parallel %NUM_JOBS%
- cmake --build _build_static --config %configuration% --target test-build --parallel %NUM_JOBS%
- set PROJ_DIR=%cd%
- set BUILD_DIR=%PROJ_DIR%\build
- set INSTALL_DIR=%PROJ_DIR%\install
- set C4_EXTERN_DIR=%BUILD_DIR%\extern
- md %BUILD_DIR%
- md %BUILD_DIR%\static %BUILD_DIR%\shared %BUILD_DIR%\extern
- cmake -S %PROJ_DIR% -B %BUILD_DIR%/static -DRYML_DEV=ON -DRYML_TEST_SUITE=ON -G "%generator%" %genarch% "-DCMAKE_BUILD_TYPE=%configuration%" "-DCMAKE_INSTALL_PREFIX=%INSTALL_DIR%/static" -DBUILD_SHARED_LIBS=OFF
#- cmake -S %PROJ_DIR% -B %BUILD_DIR%/shared -DRYML_DEV=ON -DRYML_TEST_SUITE=ON -G "%generator%" %genarch% "-DCMAKE_BUILD_TYPE=%configuration%" "-DCMAKE_INSTALL_PREFIX=%INSTALL_DIR%/shared" -DBUILD_SHARED_LIBS=ON
- cmake --build %BUILD_DIR%/static --config %configuration% --target test-build --parallel %NUM_JOBS%
#- cmake --build %BUILD_DIR%/shared --config %configuration% --target test-build --parallel %NUM_JOBS%

test_script:
- cmake --build _build_shared --config %configuration% --target test
- cmake --build _build_shared --config %configuration% --target test
- cmake --build %BUILD_DIR%\static --config %configuration% --target test
#- cmake --build %BUILD_DIR%\shared --config %configuration% --target test

artifacts:
- path: '_build/CMakeFiles/*.log'
name: logs
- path: '_build/Testing/**/*.xml'
name: test_results
#- path: '%BUILD_DIR%/static/CMakeFiles/*.log'
# name: logs
#- path: '%BUILD_DIR%/static/Testing/**/*.xml'
# name: test_results

skip_commits:
files:
Expand Down

0 comments on commit a98325e

Please sign in to comment.