]> Untitled Git - lemmy.git/commitdiff
change step order for better caching
authorFelix Ableitner <me@nutomic.com>
Thu, 10 Dec 2020 12:14:32 +0000 (13:14 +0100)
committerFelix Ableitner <me@nutomic.com>
Thu, 10 Dec 2020 12:14:32 +0000 (13:14 +0100)
.drone.yml

index 3727a5f6bce8d10efead66de51f6117e687a9017..5bd490ed8ab65dcdc4c6bed52b17ba299244ecb2 100644 (file)
@@ -2,18 +2,11 @@ kind: pipeline
 name: default
 
 steps:
-  - name: install deps
+
+  - name: cargo check
     # we need to use this experimental image because the normal rust-musl-builder doesnt
     # allow building as root (and drone doesnt have an easy way to git clone as non-root)
     # https://github.com/emk/rust-musl-builder/issues/96
-    image: ekidd/rust-musl-builder:experimental-stable
-    user: root
-    commands:
-      - apt-get -y update
-      - apt-get -y install --no-install-recommends espeak postgresql-client
-      - cargo install diesel_cli --no-default-features --features postgres
-
-  - name: cargo check
     image: ekidd/rust-musl-builder:experimental-stable
     user: root
     commands:
@@ -31,6 +24,14 @@ steps:
     commands:
       - mdbook build docs/
 
+  - name: install test deps
+    image: ekidd/rust-musl-builder:experimental-stable
+    user: root
+    commands:
+      - apt-get -y update
+      - apt-get -y install --no-install-recommends espeak postgresql-client
+      - cargo install diesel_cli --no-default-features --features postgres
+
   - name: cargo test
     image: ekidd/rust-musl-builder:experimental-stable
     user: root