bring appveyor back (#118)

* bring appveyor back

* disable windows on travis

* avoid running tests twice on appveyor, fix target
This commit is contained in:
Andronik Ordian 2019-03-28 19:36:43 +03:00 committed by Bastian Köcher
parent 45b4fae70d
commit 26d81fc5ef
3 changed files with 32 additions and 2 deletions

View File

@ -12,8 +12,6 @@ matrix:
rust: nightly
- os: osx
rust: stable
- os: windows
rust: stable
allow_failures:
- rust: nightly
script:

View File

@ -1,7 +1,10 @@
[![Build Status travis][travis-image]][travis-url]
[![Build Status appveyor][appveyor-image]][appveyor-url]
[travis-image]: https://travis-ci.org/paritytech/parity-common.svg?branch=master
[travis-url]: https://travis-ci.org/paritytech/parity-common
[appveyor-image]: https://ci.appveyor.com/api/projects/status/github/paritytech/parity-common/branch/master?svg=true
[appveyor-url]: https://ci.appveyor.com/project/paritytech/parity-common/branch/master
# parity-common
Collection of crates used in [Parity Technologies](https://www.paritytech.io/) projects

29
appveyor.yml Normal file
View File

@ -0,0 +1,29 @@
environment:
matrix:
- FEATURES: ""
platform:
- x86_64-pc-windows-msvc
# avoid running tests twice
branches:
only:
- master
install:
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
- rustup-init.exe -y --default-host %PLATFORM%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -vV
- cargo -vV
build_script:
- cargo check --tests --features "%FEATURES%"
- cargo build --all --features "%FEATURES%"
test_script:
- cargo test --all --features "%FEATURES%" --exclude uint --exclude fixed-hash
- cd fixed-hash/ && cargo test --all-features && cd ..
- cd uint/ && cargo test --features=std,quickcheck --release && cd ..
- cd plain_hasher/ && cargo test --no-default-features && cd ..
- cd parity-util-mem/ && cargo test --features=estimate-heapsize && cd ..