Skip to content

Instantly share code, notes, and snippets.

@philihp philihp/circle.yml

forked from GitsMcGee/circle.yml
Created Mar 24, 2015
Embed
What would you like to do?
machine:
environment:
JAVA_TOOL_OPTIONS: '-Dfile.encoding=UTF8 -Duser.timezone=UTC'
_JAVA_OPTIONS: '-Xms512m -Xmx1024m -Xss2m'
java:
version: oraclejdk8
python:
version: 2.7.6
services:
- docker
dependencies:
cache_directories:
- ~/.sbt
pre:
- pip install awscli
override:
- "./activator compile":
timeout: 300
test:
override:
- "./activator test docker:stage":
timeout: 900
post:
- cp -R target/test-reports $CI_REPORTS
- cd target/docker; zip -r ../homebay-docker-$CIRCLE_SHA1.zip .; cd ../../
- cp target/homebay-docker-$CIRCLE_SHA1.zip $CIRCLE_ARTIFACTS
deployment:
prod:
branch: master
commands:
- aws s3 cp $CIRCLE_ARTIFACTS/homebay-docker-$CIRCLE_SHA1.zip s3://homebay-deployments/homebay-docker-$CIRCLE_SHA1.zip
- aws elasticbeanstalk create-application-version --application-name HomeBay --auto-create-application --version-label $CIRCLE_SHA1 --source-bundle S3Bucket=homebay-deployments,S3Key=homebay-docker-$CIRCLE_SHA1.zip --region us-east-1
- aws elasticbeanstalk update-environment --environment-name homebay-web --version-label $CIRCLE_SHA1 --region us-east-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.