From d068a224868e6d21939893bbca3fb1fcd1d12b63 Mon Sep 17 00:00:00 2001 From: Andronik Ordian Date: Wed, 27 Mar 2019 12:27:08 +0300 Subject: [PATCH 1/3] bring appveyor back --- README.md | 3 +++ appveyor.yml | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 appveyor.yml diff --git a/README.md b/README.md index c983cd278..b9a2936ac 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 000000000..8137561bf --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,24 @@ +environment: + matrix: + - FEATURES: "" + +platform: + - x86_64-pc-windows-msvc + +install: + - curl -sSf -o rustup-init.exe https://win.rustup.rs/ + - rustup-init.exe -y --default-host %TARGET% + - 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 .. From 3c97442b541bdaa126b03144bcc1f2ffdbb72d1d Mon Sep 17 00:00:00 2001 From: Andronik Ordian Date: Wed, 27 Mar 2019 12:27:29 +0300 Subject: [PATCH 2/3] disable windows on travis --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index aa6466e11..16d70c362 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: From 5273971c7e41aa111f27108618e87876451a6555 Mon Sep 17 00:00:00 2001 From: Andronik Ordian Date: Wed, 27 Mar 2019 12:41:30 +0300 Subject: [PATCH 3/3] avoid running tests twice on appveyor, fix target --- appveyor.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 8137561bf..d930e318c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,13 +1,18 @@ environment: matrix: - - FEATURES: "" + - 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 %TARGET% + - rustup-init.exe -y --default-host %PLATFORM% - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin - rustc -vV - cargo -vV