enable all steps, add comments

This commit is contained in:
Felix Ableitner 2020-12-10 20:30:02 +01:00
parent a7413723b4
commit ed29e3d934

View file

@ -11,20 +11,12 @@ steps:
user: root user: root
commands: commands:
- cargo check --all - cargo check --all
# just to disable this temporarily
when:
ref:
- refs/tags/*
- name: cargo clippy - name: cargo clippy
image: ekidd/rust-musl-builder:experimental-stable image: ekidd/rust-musl-builder:experimental-stable
user: root user: root
commands: commands:
- cargo clippy - cargo clippy
# just to disable this temporarily
when:
ref:
- refs/tags/*
- name: check documentation build - name: check documentation build
image: ekidd/rust-musl-builder:experimental-stable image: ekidd/rust-musl-builder:experimental-stable
@ -41,10 +33,6 @@ steps:
commands: commands:
- cargo install diesel_cli --no-default-features --features postgres - cargo install diesel_cli --no-default-features --features postgres
- mv /root/.cargo/bin/diesel /dieselcli/diesel - mv /root/.cargo/bin/diesel /dieselcli/diesel
# just to disable this temporarily
when:
ref:
- refs/tags/*
- name: cargo test - name: cargo test
image: ekidd/rust-musl-builder:experimental-stable image: ekidd/rust-musl-builder:experimental-stable
@ -62,11 +50,9 @@ steps:
- apt-get -y install --no-install-recommends espeak postgresql-client - apt-get -y install --no-install-recommends espeak postgresql-client
- /dieselcli/diesel migration run - /dieselcli/diesel migration run
- cargo test --workspace --no-fail-fast - cargo test --workspace --no-fail-fast
# just to disable this temporarily
when:
ref:
- refs/tags/*
# TODO: this uses rust 1.48.0, which doesnt work with config-rs, so federation tests fail
# https://github.com/LemmyNet/lemmy/issues/1270
- name: cargo build - name: cargo build
image: ekidd/rust-musl-builder:experimental-stable image: ekidd/rust-musl-builder:experimental-stable
user: root user: root
@ -74,7 +60,6 @@ steps:
- name: dieselcli - name: dieselcli
path: /dieselcli path: /dieselcli
commands: commands:
- cargo --version
- cargo build - cargo build
- name: run federation tests - name: run federation tests
@ -108,6 +93,8 @@ steps:
ref: ref:
- refs/tags/* - refs/tags/*
# TODO: also need to add more databases for federation test
# (or use multiple DBs in the same postgres instance)
services: services:
- name: database - name: database
image: postgres:12-alpine image: postgres:12-alpine