Add Pipelines

[?]
Oct 11, 2018, 12:32 PM
HEGER5WDSFJTGZAA323THS5ETRXWMCGI3MNTUREPOEK7A7IG4OHAC

Dependencies

Change contents

  • file addition: bitbucket-pipelines.yml (-xw-x--x--)
    [1.0]
    # This is a sample build configuration for Rust.
    # Check our guides at https://confluence.atlassian.com/x/5Q4SMw for more examples.
    # Only use spaces to indent your .yml configuration.
    # -----
    # You can specify a custom docker image from Docker Hub as your build environment.
    image: rust:latest
    pipelines:
    default:
    - step:
    caches:
    - crates
    script:
    # - apt-get update
    # - apt-get install --no-install-recommends -y libsdl2-dev
    - rustc --verbose --version
    - cargo update -v
    - cargo build -v
    - cargo test -v
    - rustup component add clippy-preview
    - cargo clippy --all -v
    - step:
    name: Nightly
    image: rustlang/rust:nightly
    caches:
    - crates
    script:
    # - apt-get update
    # - apt-get install --no-install-recommends -y libsdl2-dev
    - rustup component add rustfmt-preview --toolchain nightly
    - rustc --verbose --version
    - cargo update -v
    - cargo build --features nightly -v
    - cargo test -v
    - rustup component add clippy-preview --toolchain nightly
    - cargo clippy --all -v --features nightly
    - cargo fmt -- --version
    - cargo fmt --all -- --check
    definitions:
    caches:
    crates: /usr/local/cargo/