aboutsummaryrefslogtreecommitdiffstats
path: root/appveyor.yml
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-23 01:04:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-23 01:04:09 +0000
commit5aef9363f403638b67e052799d6d4213b0aece73 (patch)
tree0382769c2c4f415a9fb94fe3bc59d230000f4d32 /appveyor.yml
parent4d924c2a64423851ed5e47e46fed976e1fc5486d (diff)
downloadruby-5aef9363f403638b67e052799d6d4213b0aece73.tar.gz
readonly srcdir
appveyor.yml: make srcdir unwritable during build and tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml15
1 files changed, 12 insertions, 3 deletions
diff --git a/appveyor.yml b/appveyor.yml
index a578e65c32..4364cd3364 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -19,19 +19,28 @@ install:
- ruby --version
- 'cl'
- SET
+ - echo> Makefile srcdir=.
+ - echo>> Makefile MSC_VER=0
+ - echo>> Makefile RT=none
+ - echo>> Makefile RT_VER=0
+ - echo>> Makefile BUILTIN_ENCOBJS=nul
+ - type win32\Makefile.sub >> Makefile
+ - nmake %mflags% touch-unicode-files
+ - nmake %mflags% up incs UNICODE_FILES=.
+ - del Makefile
- mkdir \usr\local\bin
- mkdir \usr\local\include
- mkdir \usr\local\lib
- appveyor DownloadFile https://downloads.sourceforge.net/project/libpng/zlib/%zlib_version%/zlib%zlib_version:.=%.zip
- 7z x -o%APPVEYOR_BUILD_FOLDER%\ext\zlib zlib%zlib_version:.=%.zip
- for %%I in (%OPENSSL_DIR%\*.dll) do mklink /h \usr\local\bin\%%~nxI %%I
+ - mkdir %Platform%-mswin_%vs%
+ - ps: Get-ChildItem "win32" -Recurse | foreach {$_.Attributes = 'Readonly'}
+ - ps: Get-Item $env:Platform"-mswin_"$env:vs | foreach {$_.Attributes = 'Normal'}
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- - mkdir %Platform%-mswin_%vs%
- cd %Platform%-mswin_%vs%
- ..\win32\configure.bat --without-ext=+,dbm,gdbm,readline --with-opt-dir=/usr/local --with-openssl-dir=%OPENSSL_DIR:\=/%
- - nmake -l touch-unicode-files
- - nmake -l up UNICODE_FILES=.
- nmake -l
- nmake install-nodoc
test_script: