GitLab CI/CD 1 · Caching, artifacts and ordering
Start a database for tests
Run a service container beside the job.
test-job:
services:
- postgres:18
variables:
POSTGRES_PASSWORD: postgres
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
Official GitLab CI/CD 1 documentation
More caching, artifacts and ordering commands
- Cache dependencies
- Pass files to later jobs
- Start a job as soon as dependencies finish
- Run a job for several versions
- Show test results in merge requests
All caching, artifacts and ordering commands · GitLab CI/CD 1 cheatsheet