Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Oct 31, 2020
1 parent 52e9ca1 commit 3600c80
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
10 changes: 1 addition & 9 deletions .ci/azure_pipelines/template-cmake-docker-steps.yml
Expand Up @@ -7,16 +7,8 @@ parameters:
apt_get: false

steps:
- ${{ if eq(parameters.apt_get, 'true') }}:
# https://github.com/microsoft/azure-pipelines-agent/issues/2043#issuecomment-687983301
- script: |
/usr/bin/docker exec -t -u 0 ci-container apt-get update
/usr/bin/docker exec -t -u 0 ci-container DEBIAN_FRONTEND=noninteractive apt-get -y install cmake
displayName: 'setup'
- script: |
mkdir build && cd build
cmake ../projects/cmake ${{ parameters.cmake_options }}
mkdir build && cd build && cmake ../projects/cmake ${{ parameters.cmake_options }}
target:
container: ${{ parameters.container_target }}
displayName: 'generate'
Expand Down
8 changes: 8 additions & 0 deletions .ci/cmake-test.bat
@@ -0,0 +1,8 @@
@echo off

mkdir build
cd build

cmake ../project/cmake
cmake --build .
ctest -V --output-on-failure
8 changes: 5 additions & 3 deletions azure-pipelines.yml
Expand Up @@ -160,9 +160,11 @@ stages:
pool:
vmImage: ubuntu-latest
steps:
- template: .ci/azure_pipelines/template-cmake-docker-steps.yml
parameters:
container_target: wine_msvc
- script: |
/usr/local/bin/wine64-entrypoint ./.ci/cmake-test.bat
target:
container: ${{ parameters.container_target }}
displayName: 'cmake test'
- job: logout
pool:
vmImage: ubuntu-latest
Expand Down

0 comments on commit 3600c80

Please sign in to comment.