Skip to content
Snippets Groups Projects
Commit 800302ea authored by Stephen D's avatar Stephen D
Browse files

Merge branch 'ci' into 'master'

CI

See merge request !1
parents 2f351656 40ae4227
No related branches found
No related tags found
1 merge request!1CI
image: "rust:latest"
variables:
DATABASE_URL: postgresql:///postgres:postgres@postgres/sparkplug
DATABASE_URL: postgresql://postgres:postgres@postgres/sparkplug
services:
- postgres:10.1
......@@ -14,13 +14,13 @@ before_script:
- rustup component add rustfmt
- rustup component add clippy
- cargo install sqlx-cli
- sqlx database create
- sqlx migrate run
test:
stage: test
script:
- cp ci.toml config.toml
- sqlx database create
- sqlx migrate run
- cargo fmt -- --check
- cargo clippy --all-targets --all-features -- -D warnings
- cargo test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment