Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
Try to fix vcvars for tests. [skip travis]
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Jan 26, 2021
1 parent 180a5f1 commit 498449d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ environment:
MSVC_CRT_SUFFIX: DLL
RUN_EXPORT: false
TRIPLET: x64-windows-static-md
VCVARS: vcvars64

matrix:
# minimal build
Expand Down Expand Up @@ -69,6 +70,7 @@ environment:
###############
- FEATURES: core,avcodec
TRIPLET: x86-windows
VCVARS: vcvars32
matrix:
fast_finish: false
# known broken features
Expand Down Expand Up @@ -98,7 +100,7 @@ build_script:
.\export.ps1 -triplet $env:TRIPLET -features $env:FEATURES -ErrorAction Stop
}
test_script:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\%VCVARS%.bat"
- mkdir build-rel
- cd build-rel
- cmake ../test -G Ninja -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=%TRIPLET% -DFEATURES=%FEATURES:,=;% -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded%MSVC_CRT_SUFFIX%
Expand Down

0 comments on commit 498449d

Please sign in to comment.