From 26d81fc5ef646c42171b95b88283afa47fa8b2a3 Mon Sep 17 00:00:00 2001 From: Andronik Ordian Date: Thu, 28 Mar 2019 19:36:43 +0300 Subject: [PATCH] bring appveyor back (#118) * bring appveyor back * disable windows on travis * avoid running tests twice on appveyor, fix target --- .travis.yml | 2 -- README.md | 3 +++ appveyor.yml | 29 +++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 appveyor.yml diff --git a/.travis.yml b/.travis.yml index aa6466e..16d70c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,8 +12,6 @@ matrix: rust: nightly - os: osx rust: stable - - os: windows - rust: stable allow_failures: - rust: nightly script: diff --git a/README.md b/README.md index c983cd2..b9a2936 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..d930e31 --- /dev/null +++ b/appveyor.yml @@ -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 ..