Skip to content

Commit 6fbd7b2

Browse files
authored
Merge pull request #46 from kngwyu/appveyor
Add appveyor
2 parents 51c4860 + c7692eb commit 6fbd7b2

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
rust-numpy
22
===========
33
[![Build Status](https://travis-ci.org/rust-numpy/rust-numpy.svg?branch=master)](https://travis-ci.org/rust-numpy/rust-numpy)
4+
[![Build status](https://ci.appveyor.com/api/projects/status/fbvref80965w64fu/branch/master?svg=true)](https://ci.appveyor.com/project/kngwyu/rust-numpy/branch/master)
45
[![Crate](http://meritbadge.herokuapp.com/numpy)](https://crates.io/crates/numpy)
56
[![docs.rs](https://docs.rs/numpy/badge.svg)](https://docs.rs/numpy)
67

appveyor.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
environment:
2+
TARGET: x86_64-pc-windows-msvc
3+
matrix:
4+
- PYTHON: "C:/Python35-x64"
5+
- PYTHON: "C:/Python36-x64"
6+
7+
install:
8+
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
9+
- "python --version"
10+
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.msi"
11+
- start /wait msiexec /i rust-nightly-%TARGET%.msi INSTALLDIR="%CD%\rust-nightly-%TARGET%" /quiet /qn /norestart
12+
- call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
13+
- set PATH=%PATH%;%CD%/rust-nightly-%TARGET%/bin
14+
- rustc -V
15+
- cargo -V
16+
- set RUST_BACKTRACE=1
17+
18+
build_script:
19+
- cargo build --verbose
20+
21+
test_script:
22+
- cargo test --verbose
23+
- pip install setuptools-rust
24+
- cd example
25+
- python setup.py install
26+
- python setup.py test

0 commit comments

Comments
 (0)