Skip to content

Commit 3e649c5

Browse files
committed
ci(appveyor): use proxy to solve SSL error
Thanks to badrelmers. rust-lang/cargo#12296 (comment)
1 parent 3df40ff commit 3e649c5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

appveyor.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@ cache:
88
- '$(CARGO_PATH) -> appveyor.yml, Cargo.lock, Cargo.toml'
99

1010
install:
11+
- cmd: appveyor-retry appveyor DownloadFile https://github.com/projectdiscovery/proxify/releases/download/v0.0.9/proxify_0.0.9_windows_386.zip -FileName proxify.zip
12+
- cmd: unzip -n proxify.zip
13+
- ps: $Proxify = Start-Process -FilePath proxify.exe -ArgumentList "-config","proxify-config","-http-addr","127.0.0.1:18080" -PassThru
14+
- cmd: certutil -addstore -f -user "Root" "proxify-config\cacert.pem"
1115
- cmd: appveyor-retry appveyor DownloadFile https://win.rustup.rs -FileName rustup-init.exe
12-
- cmd: rustup-init.exe --default-toolchain %RUST_VERSION% -y
16+
- cmd: set HTTP_PROXY=127.0.0.1:18080
17+
- cmd: set HTTPS_PROXY=127.0.0.1:18080
1318
- cmd: set PATH=%CARGO_PATH%\bin;%PATH%
19+
- cmd: rustup-init.exe --default-toolchain %RUST_VERSION% -y
1420

1521
build_script:
1622
- cmd: cargo build
@@ -22,5 +28,8 @@ test_script:
2228
after_test:
2329
- cmd: copy %S2PNG_COMMAND% s2png-win32.exe
2430

31+
on_finish:
32+
- ps: Stop-Process -Id $Proxify.Id
33+
2534
artifacts:
2635
- path: s2png-win32.exe

0 commit comments

Comments
 (0)