Skip to content

Instantly share code, notes, and snippets.

@ricardojmendez
Created October 10, 2016 06:12
Show Gist options
  • Save ricardojmendez/fb6c2375f50d48d8b6da266a6d02df52 to your computer and use it in GitHub Desktop.
Save ricardojmendez/fb6c2375f50d48d8b6da266a6d02df52 to your computer and use it in GitHub Desktop.
Sample yml configuration file for testing a Clojure web application on Gitlab CI
image: clojure:lein-2.7.0
services:
- postgres:latest
variables:
DATABASE_URL: "postgresql://postgres/dbname?user=uname&password=pwd"
before_script:
- apt-get update -y
- lein deps
test:
script:
- apt-get install postgresql-client -y
- psql -h postgres -U postgres < db-setup.sql
- lein with-profile test run migrate
- lein test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment