changeset 23:4cc1c97724f2

Configure bitbucket pipelines
author Lewin Bormann <lewin@lewin-bormann.info>
date Wed, 05 Jun 2019 19:54:58 +0200
parents 435e4e609128
children 2788bffa8d0d
files bitbucket-pipelines.yml
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bitbucket-pipelines.yml	Wed Jun 05 19:54:58 2019 +0200
@@ -0,0 +1,18 @@
+image: rustlang/rust:nightly
+
+pipelines:
+    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
+