view bitbucket-pipelines.yml @ 181:033f06f09e7f

Cache target/ directory between pipeline runs.
author Lewin Bormann <lbo@spheniscida.de>
date Sat, 12 Aug 2017 16:26:00 +0200
parents d4526767ded0
children 29d2b936b2f0
line wrap: on
line source

image: atlassianlabs/buildpack-deps-rust

pipelines:
  branches:
    default:
      - step:
          caches:
              - cargo
          script:
              - echo "Updates to rustup"                ; rustup self update
              - echo "Update Rust toolchain"            ; rustup update
              - echo "Build project"                    ; cargo build
              - echo "Run unit tests"                   ; cargo test --lib -v --no-fail-fast -- --nocapture --test

definitions:
    caches:
        cargo: target/