Skip to content

Instantly share code, notes, and snippets.

@kanishkablack
Created November 29, 2018 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kanishkablack/72d80a96387fb889cb3d7f30c9108742 to your computer and use it in GitHub Desktop.
Save kanishkablack/72d80a96387fb889cb3d7f30c9108742 to your computer and use it in GitHub Desktop.
phoenix gitlab ci/cd sample mix test
image: elixir:latest
services:
- postgres:latest
variables:
POSTGRES_DB: test_test
POSTGRES_HOST: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: "postgres"
MIX_ENV: "test"
before_script:
- apt-get update && apt-get -y install postgresql-client
- mix deps.get
- mix ecto.create
- mix ecto.migrate
mix:
script:
- mix test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment