Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Remote Modules
remote-module-template
Commits
c4804184
Commit
c4804184
authored
Jul 24, 2019
by
Guillaume Pasero
Browse files
CI: get more details on msvc install
parent
c82bd6f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
c4804184
...
...
@@ -48,5 +48,9 @@ install:
script
:
-
source setup_windows_env.sh
-
find '/c/Program Files (x86)/Microsoft Visual Studio/2017' -name "vcvarsall.bat"
-
echo inside BuildTools/Common7/Tools
-
ls '/c/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/Common7/Tools'
-
cmd.exe /s /c "call C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\Common7\\Tools\\VsDevCmd.bat /help"
-
echo $PATH
-
ctest -VV -S ./ci.cmake
setup_windows_env.sh
View file @
c4804184
...
...
@@ -8,13 +8,13 @@ eval "$(python -c '
import sys, os, subprocess
import distutils.msvc9compiler as msvc
msvc.find_vcvarsall=lambda _: sys.argv[1]
envs=msvc.query_vcvarsall(
sys.argv[2]
)
envs=msvc.query_vcvarsall(
arch='
amd64
'
)
for k,v in envs.items():
k = k.upper()
v = ":".join(subprocess.check_output(["cygpath","-u",p]).decode("utf-8").rstrip(" \n") for p in v.split(";"))
v = v.replace("'
\'
'",r"'
\'\\\'\'
'")
print("export %(k)s='
\'
'%(v)s'
\'
'" % locals())
'
'c:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/Common7/Tools/VsDevCmd.bat'
'-arch=amd64'
'
'c:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/Common7/Tools/VsDevCmd.bat'
)
"
export
CC
=
cl.exe
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment