tsurupin/portfolio

View on GitHub
circle.yml

Summary

Maintainability
Test Coverage
machine:
  ruby:
    version:
      2.3.0
  node:
    version: 6.2.2

dependencies:
  pre:
    - sudo pip install awscli
    - npm install
    - gem install bundler --pre
    - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
    - sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
    - sudo apt-get update
    - sudo apt-get --only-upgrade install google-chrome-stable
    - google-chrome --version
  override:
    - bundle install:
        environment:
          RAILS_ENV: test
  post:
    - bundle exec rake assets:precompile
test:
  override:
    - bundle exec rspec
database:
  pre:
    - mysql -e 'set global innodb_file_format = Barracuda'
    - mysql -e 'set global innodb_file_per_table = 1'
    - mysql -e 'set global innodb_large_prefix = 1'
  override:
    - mv config/ci_database.yml config/database.yml
    - rake db:migrate:reset --trace:
        environment:
          RAILS_ENV: test
          RACK_ENV: test
general:
  artifacts:
    - coverage
  branches:
    only:
      - master
      - staging
      - production
deployment:
  staging:
    branch: staging
    commands:
      - sh scripts/deploy-staging.sh:
          timeout: 1500
  production:
    branch: production
    commands:
      - sh scripts/deploy-production.sh:
          timeout: 1500