Skip to content

Instantly share code, notes, and snippets.

@myungseokang
Created October 25, 2017 12:53
Show Gist options
  • Save myungseokang/3f7df8372eb40e2d0d4e8a9e032e0958 to your computer and use it in GitHub Desktop.
Save myungseokang/3f7df8372eb40e2d0d4e8a9e032e0958 to your computer and use it in GitHub Desktop.

Revisions

  1. myungseokang created this gist Oct 25, 2017.
    36 changes: 36 additions & 0 deletions circle.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    machine:
    python:
    version: 3.4.4
    timezone:
    Asia/Seoul
    environment:
    DJANGO_SETTINGS_MODULE: config.settings.test
    AWS_ACCESS_KEY_ID: AWS_ACCESS_KEY_ID
    AWS_SECRET_ACCESS_KEY: AWS_SECRET_ACCESS_KEY

    dependencies:
    pre:
    - pip install -U pip
    - pip install -r requirements/test.txt
    - python manage.py migrate --noinput

    test:
    override:
    - pytest --cov
    - flake8

    deployment:
    production:
    branch: master
    commands:
    - bash ./setup-eb.sh
    - eb init APPLICATION_NAME -p "64bit Amazon Linux 2017.03 v2.5.2 running Python 3.4" -r ap-northeast-2
    - eb use ENV_NAME
    - eb deploy
    staging:
    branch: staging
    commands:
    - bash ./setup-eb.sh
    - eb init TEST_APPLICATION_NAME -p "64bit Amazon Linux 2017.03 v2.5.2 running Python 3.4" -r ap-northeast-2
    - eb use TEST_ENV_NAME
    - eb deploy