Created
August 21, 2019 22:31
-
-
Save carlogilmar/f3466bdac88c5386a8ed9a78a26301ce to your computer and use it in GitHub Desktop.
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
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