Skip to content

Instantly share code, notes, and snippets.

@vysakh0
Created July 14, 2016 11:36
Show Gist options
  • Save vysakh0/a167ca40bb3101de21f6f50dd2600ce5 to your computer and use it in GitHub Desktop.
Save vysakh0/a167ca40bb3101de21f6f50dd2600ce5 to your computer and use it in GitHub Desktop.
box: trenpixster/elixir:1.2.5
services:
- id: postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
build:
steps:
- script:
name: set env vars
code: |
export MIX_ENV=test
- script:
name: get and compile dependencies
code: |
cd $WERCKER_SOURCE_DIR
yes | mix do deps.get, deps.compile
- script:
name: compile
code: |
yes | mix compile
- script:
name: initialize test db
code: |
mix do ecto.create, ecto.migrate
#- script:
#name: test
#code: |
#mix test
deploy:
steps:
- script:
name: deploy the exrm
code: |
mix edeliver update production --branch=$WERCKER_GIT_BRANCH --start-deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment