From: Felix Ableitner Date: Fri, 11 Dec 2020 13:16:14 +0000 (+0100) Subject: try tests without diesel migration run X-Git-Url: http://these/git/%7B%27/docs/static/%24%7B%60data:application/%7Bpost.url%7D?a=commitdiff_plain;h=77b7511235719840323da53ded2fe609e84c67e4;p=lemmy.git try tests without diesel migration run --- diff --git a/.drone.yml b/.drone.yml index bf3c301e..0c76df7d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -24,17 +24,6 @@ steps: commands: - mdbook build docs/ - # this build somehow fails with the 1.47.0 image/without root - - name: install diesel cli - image: ekidd/rust-musl-builder:experimental-stable - user: root - volumes: - - name: dieselcli - path: /dieselcli - commands: - - cargo install diesel_cli --no-default-features --features postgres - - mv /root/.cargo/bin/diesel /dieselcli/diesel - - name: cargo test image: ekidd/rust-musl-builder:1.47.0 environment: @@ -42,20 +31,13 @@ steps: DATABASE_URL: postgres://lemmy:password@database:5432/lemmy RUST_BACKTRACE: 1 RUST_TEST_THREADS: 1 - volumes: - - name: dieselcli - path: /dieselcli commands: - sudo apt-get update - sudo apt-get -y install --no-install-recommends espeak postgresql-client - - /dieselcli/diesel migration run - cargo test --workspace --no-fail-fast - name: cargo build image: ekidd/rust-musl-builder:1.47.0 - volumes: - - name: dieselcli - path: /dieselcli commands: - cargo build