osrandom 0.1.0

An interface to the OS' secure random number generator
Documentation
# Since we use custom test script, disable the default build action
build: false


# The Rust target platforms
platform:
  - x86_64-pc-windows-msvc
  - i686-pc-windows-msvc
  - x86_64-pc-windows-gnu
  # Disable i686-pc-windows-gnu as CI target (it's mostly obsolete anyway)
  # - i686-pc-windows-gnu
  - x86_64-unknown-linux-gnu
  - x86_64-apple-darwin


# The Rust feature matrix
configuration:
  - --features=


# General environment vars
environment:
  # Promote warnings to errors
  RUSTFLAGS: -D warnings


# Fail fast if one job in the matrix fails
matrix:
  fast_finish: true


for:
  # Windows specific build settings
  - matrix:
      only:
        - platform: x86_64-pc-windows-msvc
        - platform: i686-pc-windows-msvc
    environment:
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
    install:
      - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
      - rustup-init.exe -y --default-host "%PLATFORM%"
      - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
    test_script:
      - cargo test --verbose --no-default-features %CONFIGURATION%
      - cargo test --verbose --release --no-default-features %CONFIGURATION%
  
  # Windows-gnu specific build settings
  - matrix:
      only:
        - platform: x86_64-pc-windows-gnu
        - platform: i686-pc-windows-gnu
    environment:
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
    install:
      - choco install mingw
      - set PATH=%PATH%;C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin
      - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
      - rustup-init.exe -y --default-host "%PLATFORM%"
      - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
    test_script:
      - cargo test --verbose --no-default-features %CONFIGURATION%
      - cargo test --verbose --release --no-default-features %CONFIGURATION%
  
  # Linux specific build settings
  - matrix:
      only:
        - platform: x86_64-unknown-linux-gnu
    environment:
      APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
    install:
      - curl https://sh.rustup.rs -sSf -o rustup-init.sh
      - sh rustup-init.sh -y --default-host "$PLATFORM"
      - source $HOME/.cargo/env
    test_script:
      - cargo test --verbose --no-default-features $CONFIGURATION
      - cargo test --verbose --release --no-default-features $CONFIGURATION
  
  # macOS specific build settings
  - matrix:
      only:
        - platform: x86_64-apple-darwin
    environment:
      APPVEYOR_BUILD_WORKER_IMAGE: macOS
    install:
      - curl https://sh.rustup.rs -sSf -o rustup-init.sh
      - sh rustup-init.sh -y --default-host "$PLATFORM"
      - source $HOME/.cargo/env
    test_script:
      - cargo test --verbose --no-default-features $CONFIGURATION
      - cargo test --verbose --release --no-default-features $CONFIGURATION