Created
October 10, 2016 06:12
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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