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
ab2907e2
Commit
ab2907e2
authored
Jul 24, 2019
by
Guillaume Pasero
Browse files
CI: try windows builds
parent
169e76dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
ab2907e2
...
...
@@ -11,25 +11,37 @@ env:
matrix
:
include
:
-
os
:
linux
dist
:
bionic
compiler
:
gcc
sudo
:
required
#~ - os: linux
#~ dist: bionic
#~ compiler: gcc
#~ sudo: required
#~ before_install:
#~ - sudo apt-get install -y
#~ ninja-build
#~ libglvnd-dev
#~ libglu1-mesa-dev
#~ python3-numpy
#~ env:
#~ - OTB_OS=Linux64
#~ - os: osx
#~ osx_image: xcode10.2
#~ compiler: clang
#~ before_install:
#~ - brew install ninja libomp
#~ env:
#~ - OTB_OS=Darwin64
-
os
:
windows
before_install
:
-
sudo apt-get install -y
ninja-build
libglvnd-dev
libglu1-mesa-dev
python3-numpy
-
choco install python
-
choco install ninja
env
:
-
OTB_OS=Linux64
-
os
:
osx
osx_image
:
xcode10.2
compiler
:
clang
before_install
:
-
brew install ninja libomp
env
:
-
OTB_OS=Darwin64
-
OTB_OS=Win64
install
:
-
wget ${OTB_URL}/OTB-${OTB_VER}-${OTB_OS}.zip
-
7z x -y OTB-${OTB_VER}-${OTB_OS}.zip
-
mv OTB-${OTB_VER}-${OTB_OS} xdk
before_script
:
-
source setup_windows_env.sh
install
:
-
wget ${OTB_URL}/OTB-${OTB_VER}-${OTB_OS}.run
...
...
setup_windows_env.sh
0 → 100644
View file @
ab2907e2
#!/bin/bash
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])
for k,v in envs.items():
k = k.upper()
v = ":".join(subprocess.check_output(["cygpath","-u",p]).rstrip() 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'
)
"
Write
Preview
Supports
Markdown
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