Commit ab2907e2 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

CI: try windows builds

parent 169e76dd
......@@ -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
......
#!/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'
)"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment