Skip to content

Instantly share code, notes, and snippets.

@carlogilmar
Created August 21, 2019 22:31
Show Gist options
  • Save carlogilmar/f3466bdac88c5386a8ed9a78a26301ce to your computer and use it in GitHub Desktop.
Save carlogilmar/f3466bdac88c5386a8ed9a78a26301ce to your computer and use it in GitHub Desktop.
version: 2
jobs:
build:
docker:
- image: circleci/elixir:1.9.0
- image: circleci/postgres:10.1-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_DB: remote_jobs_test
POSTGRES_PASSWORD: postgres
steps:
- checkout
- run:
name: Install package dependencies
command: sudo apt-get install -f wkhtmltopdf
- run: mix local.hex --force # install Hex locally (without prompt)
- run: mix local.rebar --force # fetch a copy of rebar (without prompt)
# specify any bash command here prefixed with `run: `
- run: mix deps.get
- run: mix ecto.create
- run: mix ecto.migrate
testing:
docker:
- image: circleci/elixir:1.9.0
steps:
- checkout
- run: echo "Testing"
workflows:
version: 2
build_and_test:
jobs:
- build:
filters:
branches:
only: master
- testing:
requires:
- build
filters:
branches:
only: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment