stages:
- build
- test
build-release:
stage: build
image: rust:1.32
script:
- rustc --version && cargo --version
- cargo build --release
test:
stage: test
image: rust:1.32
script:
- cargo test
test-integration:
stage: test
image: rust:1.32
services:
- postgres:9.5
variables:
POSTGRES_DB: dbq
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
DBQ_POSTGRES_HOST: postgres
script:
- cargo test --features integration_tests