-
Notifications
You must be signed in to change notification settings - Fork 56
/
appveyor.yml
41 lines (36 loc) · 1.13 KB
/
appveyor.yml
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
36
37
38
39
40
41
os: Visual Studio 2015
environment:
matrix:
- channel: stable
target: x86_64-pc-windows-msvc
install:
# Go To libnanomsg Destination Directory
- cd ..
# Download And Compile libnanomsg
- ps: Start-FileDownload 'https://github.com/nanomsg/nanomsg/archive/1.1.4.zip'
- 7z x 1.1.4.zip
- cd nanomsg-1.1.4
- mkdir build
- cd build
- cmake -G"Visual Studio 14 Win64" -DNN_ENABLE_DOC=OFF ..
- cmake --build .
- cmake --build . --target install
# Return To nanomsg-rs Git Directory
- cd ../../nanomsg-rs
# Download And Install Rust
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init -yv --default-toolchain %channel% --default-host %target%
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
- rustc -vV
- cargo -vV
build_script:
- set LIB=%LIB%;C:\Program Files\nanomsg\lib
- set PATH=%PATH%;C:\Program Files\nanomsg\bin
- cargo build
test_script:
- set LIB=%LIB%;C:\Program Files\nanomsg\lib
- set PATH=%PATH%;C:\Program Files\nanomsg\bin
- cargo test
# Move libnanomsg To Test nanomsg_sys
- mv ..\nanomsg-1.1.4 .\nanomsg-1.1.4 && cd nanomsg_sys
- cargo test