ci: use travis for Windows and macOS (#78)

This commit is contained in:
Andronik Ordian 2018-11-26 12:40:52 +03:00 committed by Marek Kotewicz
parent 048951f0c3
commit ac6914908c
3 changed files with 14 additions and 29 deletions

View File

@ -1,8 +1,19 @@
language: rust
rust:
- stable
- nightly
branches:
only:
- master
matrix:
include:
- os: linux
rust: stable
- os: linux
rust: beta
- os: linux
rust: nightly
- os: osx
rust: stable
- os: windows
rust: stable
allow_failures:
- rust: nightly
script:

View File

@ -3,8 +3,6 @@
[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/9b7o59ib1p3p67r1/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

View File

@ -1,24 +0,0 @@
environment:
matrix:
- FEATURES: ""
platform:
- x86_64-pc-windows-msvc
install:
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:PLATFORM}.exe"
- rust-nightly-%PLATFORM%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
- SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
- rustc -V
- cargo -V
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 hashdb/ && cargo test --no-default-features && cd ..
- cd plain_hasher/ && cargo test --no-default-features && cd ..