aboutsummaryrefslogtreecommitdiff
path: root/.appveyor.yml
diff options
context:
space:
mode:
Diffstat (limited to '.appveyor.yml')
-rw-r--r--.appveyor.yml19
1 files changed, 17 insertions, 2 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index bf51727fe6..768c540e5c 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -9,9 +9,11 @@ environment:
- target: i686-w64-mingw32
compiler_path: mingw32
openssl_path: /c/OpenSSL-Win32
+ hardening:
- target: x86_64-w64-mingw32
compiler_path: mingw64
openssl_path: /c/OpenSSL-Win64
+ hardening: --disable-gcc-hardening
install:
- ps: >-
@@ -39,7 +41,9 @@ build_script:
Execute-Bash 'autoreconf -i'
mkdir "${env:build}"
Set-Location "${env:build}"
- Execute-Bash "../configure --prefix=/${env:compiler_path} --build=${env:target} --host=${env:target} --disable-asciidoc --enable-fatal-warnings --with-openssl-dir=${env:openssl_path}"
+ Execute-Bash "which ${env:target}-gcc"
+ Execute-Bash "${env:target}-gcc --version"
+ Execute-Bash "../configure --prefix=/${env:compiler_path} --build=${env:target} --host=${env:target} --disable-asciidoc --enable-fatal-warnings --with-openssl-dir=${env:openssl_path} ${env:hardening}"
Execute-Bash "V=1 make -j2"
Execute-Bash "V=1 make -j2 install"
}
@@ -55,5 +59,16 @@ test_script:
}
on_failure:
+- ps: >-
+ if ($env:compiler -eq "mingw") {
+ $oldpath = ${env:Path} -split ';'
+ $buildpath = @("C:\msys64\usr\bin") + $oldpath
+ $env:Path = @($buildpath) -join ';'
+ Set-Location "${env:build}"
+ Execute-Bash "7z a logs.zip config.log || true"
+ Execute-Bash "7z a logs.zip test-suite.log || true"
+ Execute-Bash "appveyor PushArtifact logs.zip || true"
+ Execute-Bash "tail -1000 config.log || true"
+ Execute-Bash "cat test-suite.log || true"
+ }
- cmd: C:\Python27\python.exe %APPVEYOR_BUILD_FOLDER%\scripts\test\appveyor-irc-notify.py irc.oftc.net:6697 tor-ci failure
-