mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-14 00:14:03 +00:00
change step order for better caching
This commit is contained in:
parent
2d0bf7d40d
commit
82c3778082
1 changed files with 10 additions and 9 deletions
19
.drone.yml
19
.drone.yml
|
@ -2,18 +2,11 @@ kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: install deps
|
|
||||||
|
- name: cargo check
|
||||||
# we need to use this experimental image because the normal rust-musl-builder doesnt
|
# 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)
|
# 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
|
# 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
|
image: ekidd/rust-musl-builder:experimental-stable
|
||||||
user: root
|
user: root
|
||||||
commands:
|
commands:
|
||||||
|
@ -31,6 +24,14 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- mdbook build docs/
|
- 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
|
- name: cargo test
|
||||||
image: ekidd/rust-musl-builder:experimental-stable
|
image: ekidd/rust-musl-builder:experimental-stable
|
||||||
user: root
|
user: root
|
||||||
|
|
Loading…
Reference in a new issue