Skip to content
Snippets Groups Projects
Commit 7a9151fc authored by nurdaulet's avatar nurdaulet
Browse files

Merge branch '10-setup-ci-in-gitlab-for-automated-testing' into 'main'

Resolve "Setup CI in GitLab for automated testing"

Closes #10

See merge request !3
parents 27321415 f2eb3f39
No related branches found
No related tags found
1 merge request!3Resolve "Setup CI in GitLab for automated testing"
Pipeline #42300 passed
stages:
- build
- test
compile:
stage: build
image: elixir:1.14
# use cache to speed up subsequent builds
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- _build
- deps
script:
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- mix compile
test:
stage: test
image: elixir:1.14
# Pick zero or more services to be used on all builds.
# Only needed when using a docker container to run your tests in.
# Check out: http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service
services:
- postgres:13-alpine
variables:
POSTGRES_DB: proptrackr_dev
POSTGRES_HOST: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: "postgres"
MIX_ENV: "test"
before_script:
- apt-get update && apt-get -y install postgresql-client
- mix local.rebar --force
- mix local.hex --force
- mix deps.get
- mix ecto.create
- mix ecto.migrate
script:
- mix test
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment