machine:
  timezone: America/Los_Angeles

checkout:
  post:
    - rm -rf ~/.go_workspace/src/github.com/remind101
    - mkdir -p ~/.go_workspace/src/github.com/remind101
    - cp -R ~/empire ~/.go_workspace/src/github.com/remind101/empire

dependencies:
  pre:
    - sudo pip install awscli
    - sudo service docker stop; sudo curl -L -o /usr/bin/docker 'http://s3-external-1.amazonaws.com/circle-downloads/docker-1.6.0-circleci'; sudo chmod 0755 /usr/bin/docker; sudo service docker start; true
    - go install -a -race std
    - go get github.com/tools/godep
    - go version
    - cd ~/.go_workspace/src/github.com/remind101/empire && make bootstrap
  override:
    - cd ~/.go_workspace/src/github.com/remind101/empire && make build

test:
  override:
    - cd ~/.go_workspace/src/github.com/remind101/empire && make cmd
    - cd ~/.go_workspace/src/github.com/remind101/empire && make test

deployment:
  hub: 
    branch: master
    commands:
      - make build
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - docker push remind101/empire
      - AWS_REGION=us-east-1 aws s3 cp docs/cloudformation.json s3://empirepaas/cloudformation.json --acl public-read 

machine:
  timezone: America/Los_Angeles

checkout:
  post:
    - rm -rf ~/.go_workspace/src/github.com/remind101
    - mkdir -p ~/.go_workspace/src/github.com/remind101
    - cp -R ~/empire ~/.go_workspace/src/github.com/remind101/empire

dependencies:
  pre:
    - sudo pip install awscli
    - go install -a -race std
    - go get github.com/tools/godep
    - go version
    - cd ~/.go_workspace/src/github.com/remind101/empire && make bootstrap
  override:
    - /bin/true

test:
  override:
    - cd ~/.go_workspace/src/github.com/remind101/empire && make cmd
    - cd ~/.go_workspace/src/github.com/remind101/empire && make test

deployment:
  hub: 
    branch: master
    commands:
      - AWS_REGION=us-east-1 aws s3 cp docs/cloudformation.json s3://empirepaas/cloudformation.json --acl public-read 

Build Docker image with Conveyor.
Build Docker image with Conveyor.