machine:
  node:
    version: 0.10.40
  environment:
    LANG: en_US.utf8
dependencies:
  pre:
    - if [ "$CIRCLE_BRANCH" = "master" ]; then gem install mime-types -v 2.6.2; fi
    - if [ "$CIRCLE_BRANCH" = "master" ]; then gem install rest-client -v 1.8; fi
    - if [ "$CIRCLE_BRANCH" = "master" ]; then gem install crowdin-cli; fi
    - if [ "$CIRCLE_BRANCH" = "master" ]; then crowdin-cli upload sources; fi
    - if [ "$CIRCLE_BRANCH" = "master" ]; then for lang in it pt-PT de nl ro mt sl sk fr uk es-ES es-AR el pl et bg tr ja hi lt; do crowdin-cli download -l $lang; done; fi
  override:
    - npm install
test:
  override:
    - npm run test
deployment:
  production:
    branch: master
    codedeploy:
      cp-users-service:
        application_root: /
        region: eu-west-1
        revision_location:
          revision_type: S3
          s3_location:
            bucket: zen-deployments
            key_pattern: applications/cp-users-service-ci-{BUILD_NUM}.zip
        deployment_group: prod-zen
        deployment_config: CodeDeployDefault.OneAtATime

machine:
  node:
    version: 0.10.40
  environment:
    LANG: en_US.utf8
dependencies:
  pre:
    - if [ "$CIRCLE_BRANCH" = "master" ]; then gem install mime-types -v 2.6.2; fi
    - if [ "$CIRCLE_BRANCH" = "master" ]; then gem install rest-client -v 1.8; fi
    - if [ "$CIRCLE_BRANCH" = "master" ]; then gem install crowdin-cli -v 0.5.5; fi
    - if [ "$CIRCLE_BRANCH" = "master" ]; then crowdin-cli upload sources; fi
    - if [ "$CIRCLE_BRANCH" = "master" ]; then for lang in it pt-PT de nl ro mt sl sk fr uk es-ES es-AR el pl et bg tr ja hi lt; do crowdin-cli download -l $lang; done; fi
  override:
    - npm install
test:
  override:
    - npm run test
deployment:
  production:
    branch: master
    codedeploy:
      cp-users-service:
        application_root: /
        region: eu-west-1
        revision_location:
          revision_type: S3
          s3_location:
            bucket: zen-deployments
            key_pattern: applications/cp-users-service-ci-{BUILD_NUM}.zip
        deployment_group: prod-zen
        deployment_config: CodeDeployDefault.OneAtATime

Fix version of crowdin-cli-ruby w Ruby<2.0 issue
Fix version of crowdin-cli-ruby w Ruby<2.0 issue
