pastebin/.gitlab-ci.yml
2019-08-09 11:57:36 +02:00

29 lines
545 B
YAML

build:
image: rust:1.36
script:
- &print_version rustc --version && cargo --version
- cargo build --release --verbose
artifacts:
paths:
- target/release/pastebinrun
test:1.36: &test
services:
- postgres
variables:
POSTGRES_DB: db
POSTGRES_USER: user
POSTGRES_PASSWORD: password
image: rust:1.36
script:
- *print_version
- DATABASE_URL=postgresql://user:password@postgres/db cargo test --verbose
test:stable:
<<: *test
image: rust:latest
test:nightly:
<<: *test
image: rustlang/rust:nightly