forked from thehydroimpulse/nanomsg.rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
33 lines (31 loc) · 1.1 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
install:
# Go To libnanomsg Destination Directory
- cd ..
# Download And Compile libnanomsg
- ps: Start-FileDownload 'https://github.com/nanomsg/nanomsg/archive/1.0.0.zip'
- 7z x 1.0.0.zip
- cd nanomsg-1.0.0
- 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
- ps: Start-FileDownload 'https://static.rust-lang.org/dist/rust-1.9.0-x86_64-pc-windows-msvc.msi'
- start /wait msiexec /i rust-1.9.0-x86_64-pc-windows-msvc.msi INSTALLDIR="C:\Program Files\Rust" /quiet /qn /passive /norestart
- set PATH=%PATH%;C:\Program Files\Rust\bin
- rustc -V -v
- cargo -V
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.0.0 .\nanomsg-1.0.0 && cd nanomsg_sys
- cargo test