router: Keep RSA onion public key in ASN.1 format
[tor.git] / .appveyor.yml
blob197097d1fdf53dbb9949535e8af01c442671e655
1 version: 1.0.{build}\r
2 \r
3 clone_depth: 50\r
4 \r
5 environment:\r
6   compiler: mingw\r
7 \r
8   matrix:\r
9   - target: i686-w64-mingw32\r
10     compiler_path: mingw32\r
11     openssl_path: /c/OpenSSL-Win32\r
12   - target: x86_64-w64-mingw32\r
13     compiler_path: mingw64\r
14     openssl_path: /c/OpenSSL-Win64\r
16 install:\r
17 - ps: >-\r
18     Function Execute-Command ($commandPath)\r
19     {\r
20         & $commandPath $args 2>&1\r
21         if ( $LastExitCode -ne 0 ) {\r
22             $host.SetShouldExit( $LastExitCode )\r
23         }\r
24     }\r
25     Function Execute-Bash ()\r
26     {\r
27         Execute-Command 'c:\msys64\usr\bin\bash' '-e' '-c' $args\r
28     }\r
29     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
31 build_script:\r
32 - ps: >-\r
33     if ($env:compiler -eq "mingw") {\r
34             $oldpath = ${env:Path} -split ';'\r
35             $buildpath = @("C:\msys64\${env:compiler_path}\bin", "C:\msys64\usr\bin") + $oldpath\r
36             $env:Path = @($buildpath) -join ';'\r
37             $env:build = @("${env:APPVEYOR_BUILD_FOLDER}", $env:target) -join '\'\r
38             Set-Location "${env:APPVEYOR_BUILD_FOLDER}"\r
39             Execute-Bash 'autoreconf -i'\r
40             mkdir "${env:build}"\r
41             Set-Location "${env:build}"\r
42             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
43             Execute-Bash "V=1 make -j2"\r
44             Execute-Bash "V=1 make -j2 install"\r
45      }\r
47 test_script:\r
48 - ps: >-\r
49     if ($env:compiler -eq "mingw") {\r
50             $oldpath = ${env:Path} -split ';'\r
51             $buildpath = @("C:\msys64\${env:compiler_path}\bin") + $oldpath\r
52             $env:Path = $buildpath -join ';'\r
53             Set-Location "${env:build}"\r
54             Execute-Bash "VERBOSE=1 make -j2 check"\r
55     }\r
57 on_success:\r
58 - cmd: C:\Python27\python.exe %APPVEYOR_BUILD_FOLDER%\scripts\test\appveyor-irc-notify.py irc.oftc.net:6697 tor-ci success\r
60 on_failure:\r
61 - cmd: C:\Python27\python.exe %APPVEYOR_BUILD_FOLDER%\scripts\test\appveyor-irc-notify.py irc.oftc.net:6697 tor-ci failure\r