]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Appveyor configuration files.
authorNick Mathewson <nickm@torproject.org>
Mon, 21 May 2018 19:29:32 +0000 (15:29 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 May 2018 13:56:33 +0000 (09:56 -0400)
Original by Marcin Cieślak, with modifications from Isis Lovecruft
and Nick Mathewson.

.appveyor.yml [new file with mode: 0644]

diff --git a/.appveyor.yml b/.appveyor.yml
new file mode 100644 (file)
index 0000000..197097d
--- /dev/null
@@ -0,0 +1,62 @@
+version: 1.0.{build}\r
+\r
+clone_depth: 50\r
+\r
+environment:\r
+  compiler: mingw\r
+\r
+  matrix:\r
+  - target: i686-w64-mingw32\r
+    compiler_path: mingw32\r
+    openssl_path: /c/OpenSSL-Win32\r
+  - target: x86_64-w64-mingw32\r
+    compiler_path: mingw64\r
+    openssl_path: /c/OpenSSL-Win64\r
+\r
+install:\r
+- ps: >-\r
+    Function Execute-Command ($commandPath)\r
+    {\r
+        & $commandPath $args 2>&1\r
+        if ( $LastExitCode -ne 0 ) {\r
+            $host.SetShouldExit( $LastExitCode )\r
+        }\r
+    }\r
+    Function Execute-Bash ()\r
+    {\r
+        Execute-Command 'c:\msys64\usr\bin\bash' '-e' '-c' $args\r
+    }\r
+    Execute-Command "C:\msys64\usr\bin\pacman" -Sy --noconfirm openssl-devel openssl libevent-devel libevent mingw-w64-i686-libevent mingw-w64-x86_64-libevent mingw-w64-i686-openssl mingw-w64-x86_64-openssl mingw-w64-i686-zstd mingw-w64-x86_64-zstd\r
+\r
+build_script:\r
+- ps: >-\r
+    if ($env:compiler -eq "mingw") {\r
+            $oldpath = ${env:Path} -split ';'\r
+            $buildpath = @("C:\msys64\${env:compiler_path}\bin", "C:\msys64\usr\bin") + $oldpath\r
+            $env:Path = @($buildpath) -join ';'\r
+            $env:build = @("${env:APPVEYOR_BUILD_FOLDER}", $env:target) -join '\'\r
+            Set-Location "${env:APPVEYOR_BUILD_FOLDER}"\r
+            Execute-Bash 'autoreconf -i'\r
+            mkdir "${env:build}"\r
+            Set-Location "${env:build}"\r
+            Execute-Bash "../configure --prefix=/${env:compiler_path} --build=${env:target} --host=${env:target} --disable-asciidoc --enable-fatal-warnings --with-openssl-dir=${env:openssl_path}"\r
+            Execute-Bash "V=1 make -j2"\r
+            Execute-Bash "V=1 make -j2 install"\r
+     }\r
+\r
+test_script:\r
+- ps: >-\r
+    if ($env:compiler -eq "mingw") {\r
+            $oldpath = ${env:Path} -split ';'\r
+            $buildpath = @("C:\msys64\${env:compiler_path}\bin") + $oldpath\r
+            $env:Path = $buildpath -join ';'\r
+            Set-Location "${env:build}"\r
+            Execute-Bash "VERBOSE=1 make -j2 check"\r
+    }\r
+\r
+on_success:\r
+- cmd: C:\Python27\python.exe %APPVEYOR_BUILD_FOLDER%\scripts\test\appveyor-irc-notify.py irc.oftc.net:6697 tor-ci success\r
+\r
+on_failure:\r
+- cmd: C:\Python27\python.exe %APPVEYOR_BUILD_FOLDER%\scripts\test\appveyor-irc-notify.py irc.oftc.net:6697 tor-ci failure\r
+\r