Created
October 25, 2017 12:53
-
-
Save myungseokang/3f7df8372eb40e2d0d4e8a9e032e0958 to your computer and use it in GitHub Desktop.
Revisions
-
myungseokang created this gist
Oct 25, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal 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