summaryrefslogtreecommitdiff
path: root/appveyor.yml
blob: 83626be78319265c04baf8b2f44ed23d3784cb84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
install:
  # libssh2 depends on libbcrypt, but apparently this library is not available
  # in the normal MinGW distribution (installed on bots by default), so we
  # install our own custom mingw-w64 compiler
  - ps: |
      if (!(Test-Path 'x86_64-4.9.2-release-win32-seh-rt_v3-rev1.7z')) {
        Start-FileDownload 'http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.2/threads-win32/seh/x86_64-4.9.2-release-win32-seh-rt_v3-rev1.7z'
      }
  - 7z x x86_64-4.9.2-release-win32-seh-rt_v3-rev1.7z > nul
  - set PATH=%PATH%;C:\projects\ssh2-rs\mingw64\bin

  # Our build script currently relies on `make`, so be sure that it's in the PATH
  - set PATH=%PATH%;C:\MinGW\msys\1.0\bin

  # Download a 64-bit compiler (matching the 64-bit mingw-w64 compiler being
  # used), and currently also use a beta (there's a bug in nightly for executing
  # commands).
  - ps: |
      if (!(Test-Path 'rust-1.0.0-beta-x86_64-pc-windows-gnu.exe')) {
        Start-FileDownload 'https://static.rust-lang.org/dist/rust-1.0.0-beta-x86_64-pc-windows-gnu.exe'
      }
  - rust-1.0.0-beta-x86_64-pc-windows-gnu.exe /VERYSILENT /NORESTART /DIR="C:\Rust"
  - SET PATH=%PATH%;C:\Rust\bin
  - rustc -V
  - cargo -V

cache:
  - x86_64-4.9.2-release-win32-seh-rt_v3-rev1.7z
  - rust-1.0.0-beta-x86_64-pc-windows-gnu.exe

build: false

test_script:
  - cargo build --verbose -j1
  - cargo test --verbose --no-run -j1