<commit_before>language: ruby
rvm:
  - ruby-2.3.0

sudo: required

services:
  - postgres

branches:
  only:
    - master

# For AWS deploy, install the AWS CLI, so we can push asset artifacts up to S3 when merging to master.
# before_install:
#   - pip install --user awscli
#   - export PATH=$PATH:$HOME/.local/bin

before_install:
  - export TZ=America/New_York
  - echo psql --version
  - gem install -v 1.10.6 bundler --no-rdoc --no-ri

  # workarounds for phantomjs 1, see: https://github.com/travis-ci/travis-ci/issues/3225#issuecomment-177592725
  - mkdir travis-phantomjs
  - wget https://studentinsights-public.s3.amazonaws.com/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
  - tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
  - export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH

  # install newer version of node
  - . $HOME/.nvm/nvm.sh
  - nvm install stable
  - nvm use stable
  - npm install
  - node --version
  - npm --version
  - npm install

install:
 - bundle _1.10.6_ install --retry=3

script:
  - bundle exec rake db:create db:migrate DATABASE_URL=postgres://localhost/student_insights_test
  - bundle exec rspec spec
  - bundle exec teaspoon
  # - ruby scripts/browserstack_tests/browserstack_frontend_test1.rb

  # For AWS deploy, add step here:
  # - aws/rails/build_from_travis.sh

env:
  global:<commit_msg>Add linting to Travis.yml<commit_after>language: ruby
rvm:
  - ruby-2.3.0

sudo: required

services:
  - postgres

branches:
  only:
    - master

# For AWS deploy, install the AWS CLI, so we can push asset artifacts up to S3 when merging to master.
# before_install:
#   - pip install --user awscli
#   - export PATH=$PATH:$HOME/.local/bin

before_install:
  - export TZ=America/New_York
  - echo psql --version
  - gem install -v 1.10.6 bundler --no-rdoc --no-ri

  # workarounds for phantomjs 1, see: https://github.com/travis-ci/travis-ci/issues/3225#issuecomment-177592725
  - mkdir travis-phantomjs
  - wget https://studentinsights-public.s3.amazonaws.com/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
  - tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
  - export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH

  # install newer version of node
  - . $HOME/.nvm/nvm.sh
  - nvm install stable
  - nvm use stable
  - npm install
  - node --version
  - npm --version
  - npm install

install:
 - bundle _1.10.6_ install --retry=3

script:
  - npm run lint
  - bundle exec rake db:create db:migrate DATABASE_URL=postgres://localhost/student_insights_test
  - bundle exec rspec spec
  - bundle exec teaspoon
  # - ruby scripts/browserstack_tests/browserstack_frontend_test1.rb

  # For AWS deploy, add step here:
  # - aws/rails/build_from_travis.sh

env:
  global:
{'fraction_non_alphanumeric': 0.12172730363821829, 'fraction_numerical': 0.04080244814688881, 'mean_word_length': 3.097493036211699, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '590788', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1130, 'n_words': 245}