language: ruby
rvm:
  - 2.1.0
  - 2.0.0
  - 1.9.3
gemfile:
  - Gemfile
branches:
  only:
    - devel
env:
  - "REDMINE_LANG=en"
  - "CODECLIMATE_REPO_TOKEN=c59856fbb8844b03634d7d0bc408d159dcd007f65b33e0bb4dddb38c79ecd8c8"
before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq libicu-dev
  - cd ../..
  - ./jbox-web/redmine_git_hosting/contrib/travis/install_redmine.sh
  - cd redmine
  - echo $(pwd)
  - export BUNDLE_GEMFILE=$PWD/Gemfile
before_script:
  - echo $(pwd)
  - mysql -e 'create database redmine;'
  - mysql -e 'create database redmine_test;'
  - bundle exec rake generate_secret_token
  - bundle exec rake db:migrate
  - bundle exec rake redmine:load_default_data
  - bundle exec rake redmine:plugins:migrate
  - bundle exec rake db:test:prepare
script:
  - bundle exec rake redmine_git_hosting:test

language: ruby
rvm:
  - 2.1.0
  - 2.0.0
  - 1.9.3
gemfile:
  - Gemfile
branches:
  only:
    - devel
env:
  - "REDMINE_LANG=en CODECLIMATE_REPO_TOKEN=c59856fbb8844b03634d7d0bc408d159dcd007f65b33e0bb4dddb38c79ecd8c8"
before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq libicu-dev
  - cd ../..
  - ./jbox-web/redmine_git_hosting/contrib/travis/install_redmine.sh
  - cd redmine
  - echo $(pwd)
  - export BUNDLE_GEMFILE=$PWD/Gemfile
before_script:
  - echo $(pwd)
  - mysql -e 'create database redmine;'
  - mysql -e 'create database redmine_test;'
  - bundle exec rake generate_secret_token
  - bundle exec rake db:migrate
  - bundle exec rake redmine:load_default_data
  - bundle exec rake redmine:plugins:migrate
  - bundle exec rake db:test:prepare
script:
  - bundle exec rake redmine_git_hosting:test

Fix Travis env (multiple lines = multiple env test cases)
Fix Travis env (multiple lines = multiple env test cases)
