Deploys are handled by CircleCI. Heres what is required:
All these environment variables need to be set on circleci either via a context
or via the project settings.
GIGALIXIR_APP_NAME
- App name to be deployed.GIGALIXIR_EMAIL
- URI encoded email for user with access to deploymentGIGALIXIR_API_KEY
- gigalixir api key.COVERALLS_REPO_TOKEN
- for posting coverage to coveralls.
To perform a deploy do:
git push origin master
Then CircleCI will perform a number of tasks.
ExUnit
Testsdialyzer
static code analysiscredo
static code analysismix format --check-formatted
If those all pass, the deploy commences. โจ
git remote add gigalixir https://$GIGALIXIR_EMAIL:[email protected]/$GIGALIXIR_APP_NAME.git
git push -f gigalixir HEAD:refs/heads/master