aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2018-07-08 21:06:28 -0500
committerGanesh Viswanathan <dev@genotrance.com>2018-07-08 21:06:28 -0500
commit0226dba4276b7e60bd3f25fdc222e3289b93c302 (patch)
tree2d525aebcfba42347716e861ae25d91f5d0ed737
parent60d94e9114832ee8f46ca73dccb761706aed364d (diff)
downloadnimgen-0226dba4276b7e60bd3f25fdc222e3289b93c302.tar.gz
nimgen-0226dba4276b7e60bd3f25fdc222e3289b93c302.zip
Setup CI
-rw-r--r--appveyor.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..476e6d7
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,44 @@
+version: '{build}'
+
+cache:
+- i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
+
+matrix:
+ fast_finish: true
+
+environment:
+ matrix:
+ - MINGW_DIR: mingw32
+ MINGW_URL: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.2/threads-win32/dwarf/i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z/download
+ MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
+ platform: x86
+
+install:
+ - MKDIR %CD%\DIST
+ - MKDIR %CD%\DIST\PCRE
+ - nuget install pcre -Verbosity quiet -Version 8.33.0.1 -OutputDirectory %CD%\DIST\PCRE
+ - IF not exist "%MINGW_ARCHIVE%" appveyor DownloadFile "%MINGW_URL%" -FileName "%MINGW_ARCHIVE%"
+ - 7z x -y "%MINGW_ARCHIVE%" -o"%CD%\DIST"> nul
+ - SET PATH=%CD%\DIST\%MINGW_DIR%\BIN;%CD%\BIN;%PATH%
+ - IF "%PLATFORM%" == "x64" ( copy C:\OpenSSL-Win64\libeay32.dll %CD%\BIN\libeay64.dll & copy C:\OpenSSL-Win64\libeay32.dll %CD%\BIN\libeay32.dll & copy C:\OpenSSL-Win64\libssl32.dll %CD%\BIN\libssl64.dll & copy C:\OpenSSL-Win64\libssl32.dll %CD%\BIN\libssl32.dll )
+ ELSE ( copy C:\OpenSSL-Win32\libeay32.dll %CD%\BIN\libeay32.dll & copy C:\OpenSSL-Win32\libssl32.dll %CD%\BIN\libssl32.dll )
+ - IF "%PLATFORM%" == "x64" ( copy %CD%\DIST\PCRE\pcre.redist.8.33.0.1\build\native\bin\v100\x64\Release\dynamic\utf8\pcre8.dll %CD%\bin\pcre64.dll ) ELSE ( copy %CD%\DIST\PCRE\pcre.redist.8.33.0.1\build\native\bin\v100\Win32\Release\dynamic\utf8\pcre8.dll %CD%\bin\pcre32.dll )
+ - git clone --depth 1 https://github.com/nim-lang/nim
+ - cd nim
+ - git clone --depth 1 https://github.com/nim-lang/csources
+ - cd csources
+ - IF "%PLATFORM%" == "x64" ( build64.bat ) else ( build.bat )
+ - cd ..
+ - bin\nim c -d:release koch
+ - koch boot -d:release
+ - koch nimble -d:release
+ - SET PATH=%CD%\bin;%PATH%
+ - cd ..
+
+build_script:
+ - nimble install -y
+
+test_script:
+ - nimble test
+
+deploy: off