Created
November 29, 2018 08:00
-
-
Save kanishkablack/72d80a96387fb889cb3d7f30c9108742 to your computer and use it in GitHub Desktop.
phoenix gitlab ci/cd sample mix test
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: 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