changeset 465:e0ad0ac062e1

chore(ci): Update Bitbucket pipeline.
author Lewin Bormann <lbo@spheniscida.de>
date Fri, 17 May 2019 12:27:33 +0200
parents fd31f9ad8897
children 4d388d72fb14
files bitbucket-pipelines.yml
diffstat 1 files changed, 15 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/bitbucket-pipelines.yml	Fri May 17 11:35:52 2019 +0200
+++ b/bitbucket-pipelines.yml	Fri May 17 12:27:33 2019 +0200
@@ -1,17 +1,18 @@
-image: atlassianlabs/buildpack-deps-rust
+image: rustlang/rust:nightly
 
 pipelines:
-  branches:
-    '*':
-      - 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
+    branches:
+        master:
+            - step:
+                caches:
+                    - cargo
+                    - rust-target
+                script:
+                    - echo "Build project"                    ; cargo build --release
+                    - echo "Run unit tests"                   ; cargo test --lib --release -v --no-fail-fast -- --nocapture --test
+                    - echo "Run documentation tests"          ; cargo test --doc --release -v --no-fail-fast -- --nocapture --test
+definitions:
+  caches:
+    cargo: /usr/local/cargo # CARGO_HOME
+    rust-target: $BITBUCKET_CLONE_DIR/target
 
-definitions:
-    caches:
-        cargo: target/