changeset 50:f0843388fd96

Use rust nightly for bitbucket pipelines
author Lewin Bormann <lbo@spheniscida.de>
date Fri, 19 Jul 2019 18:18:43 +0200
parents 6662ff63ce90
children c716f45706fd
files bitbucket-pipelines.yml
diffstat 1 files changed, 15 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/bitbucket-pipelines.yml	Fri Jul 19 18:16:18 2019 +0200
+++ b/bitbucket-pipelines.yml	Fri Jul 19 18:18:43 2019 +0200
@@ -1,17 +1,18 @@
-image: atlassianlabs/buildpack-deps-rust
+image: rustlang/rust:nightly
 
 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
+    branches:
+        '*':
+            - 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/