Created
May 10, 2018 03:09
-
-
Save seanculver/91bd62f31e2feec589e0f91644caf0df 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: | |
test-job: | |
machine: true | |
steps: | |
- checkout | |
- run: sudo bash -c "$(curl -fsSL https://s3.amazonaws.com/tools.nanobox.io/bootstrap/ci.sh)" | |
- run: nanobox evar add local COVERALLS_REPO_TOKEN=$COVERALLS_REPO_TOKEN | |
- run: nanobox evar add local DATA_DB_HOST=$DATA_DB_HOST | |
- run: nanobox evar add local DATA_DB_PASS=$DATA_DB_PASS | |
- run: nanobox evar add local DATA_DB_USER=$DATA_DB_USER | |
- run: nanobox evar add local MIX_ENV=$MIX_ENV | |
- run: nanobox evar add local NANOBOX_PASSWORD=$NANOBOX_PASSWORD | |
- run: nanobox evar add local NANOBOX_USERNAME=$NANOBOX_USERNAME | |
- run: nanobox evar add local NANOBOX=true | |
- run: nanobox run mix ecto.create | |
- run: nanobox run mix credo --strict | |
- run: nanobox run mix coveralls.circle | |
deploy-job: | |
machine: true | |
steps: | |
- checkout | |
- run: sudo bash -c "$(curl -fsSL https://s3.amazonaws.com/tools.nanobox.io/bootstrap/ci.sh)" | |
- run: nanobox remote add my-app | |
- run: nanobox deploy -m "$(git log --format=format:"%s (%h)" -n 1 $CIRCLE_SHA1)" | |
workflows: | |
version: 2 | |
test-deploy: | |
jobs: | |
- test-job | |
- deploy-job: | |
requires: | |
- test-job | |
filters: | |
branches: | |
only: master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment