From 1cd790a3e69b52a9651a8f206fbdbd77260df848 Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 11 Sep 2019 00:26:15 -0400 Subject: [PATCH] drone_container (#2) --- .drone.yml | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6b6e7eb..cf83e23 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,19 +1,33 @@ --- kind: pipeline -type: exec -name: test libpso - -platform: - os: linux - arch: amd64 +type: docker +name: test libpso steps: -- name: get rust - commands: - - rustup default nightly - name: cargo build + image: rustlang/rust:nightly + volumes: + - name: cache + path: /usr/local/cargo + - name: target-cache + path: /drone/src/target commands: - cargo build - name: cargo test + image: rustlang/rust:nightly + volumes: + - name: cache + path: /usr/local/cargo + - name: target-cache + path: /drone/src/target commands: - cargo test + +volumes: +- name: cache + host: + path: /home/drone/.cargo +- name: target-cache + host: + path: /home/drone/cargo-cache +