Skip to content

Commit d961ff4

Browse files
Travis: add a build with Visual Studio on Windows
Travis now offers a Windows environment. Do a build with Visual Studio. This brings diversity into the Travis CI which otherwise only uses GCC and Clang. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
1 parent a66b146 commit d961ff4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.travis.yml

+12
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ jobs:
4040
script:
4141
- tests/scripts/all.sh -k test_default_out_of_box
4242

43+
- name: Windows
44+
os: windows
45+
script:
46+
- export retarget="v120" # Visual Studio 2013
47+
- >
48+
cmd /C '
49+
set "VSCMD_START_DIR=%cd%\visualc\VS2010" &&
50+
"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64 &&
51+
msbuild /t:Rebuild /p:Configuration=Release,PlatformToolset=%retarget% /m mbedTLS.sln &&
52+
msbuild /p:Configuration=Release /m RUN_TESTS.vcxproj
53+
'
54+
4355
after_failure:
4456
- tests/scripts/travis-log-failure.sh
4557

0 commit comments

Comments
 (0)