| 1 |
version: 1.0.{build} |
| 2 |
|
| 3 |
branches: |
| 4 |
except: |
| 5 |
- ruby-2.x |
| 6 |
- onig-5.9.x-mod |
| 7 |
- onig-5.9.x-mod_for_bregonig-v2 |
| 8 |
|
| 9 |
environment: |
| 10 |
matrix: |
| 11 |
- ARCH: x64 |
| 12 |
PYOPT: -3 |
| 13 |
- ARCH: x86 |
| 14 |
PYOPT: -3.4-32 |
| 15 |
|
| 16 |
install: |
| 17 |
- cmd: |- |
| 18 |
rem Check environments. |
| 19 |
rem path |
| 20 |
rem dir C:\ |
| 21 |
rem dir "C:\Program Files" |
| 22 |
rem dir "C:\Program Files\Microsoft SDKs\Windows" |
| 23 |
rem dir "C:\Program Files (x86)" |
| 24 |
rem dir "C:\Program Files (x86)\Windows Kits" |
| 25 |
rem Using Windows SDK 7.1 (VC10) |
| 26 |
rem "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /%ARCH% /release |
| 27 |
rem Using VC12 |
| 28 |
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %ARCH% |
| 29 |
path |
| 30 |
|
| 31 |
build_script: |
| 32 |
- cmd: |- |
| 33 |
nmake -f win32\Makefile |
| 34 |
dir build_%ARCH%\onigmo.dll |
| 35 |
\msys64\usr\bin\file build_%ARCH%\onigmo.dll |
| 36 |
|
| 37 |
test_script: |
| 38 |
- cmd: |- |
| 39 |
py %PYOPT% -c "import locale; print(locale.getpreferredencoding())" |
| 40 |
nmake -f win32\Makefile test |
| 41 |
|
| 42 |
# vim: ts=2 sw=2 sts=2 et |