Created
July 14, 2016 11:36
-
-
Save vysakh0/a167ca40bb3101de21f6f50dd2600ce5 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
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