<commit_before>language: python
dist: trusty
sudo: required

python:
  - 3.6

services:
  - mysql

install:
  - source ~/.nvm/nvm.sh
  - nvm install v8.10.0

  - git clone https://github.com/frappe/bench --depth 1
  - pip install -e ~/bench

  - rm $TRAVIS_BUILD_DIR/.git/shallow
  - cd ~/ && bench init frappe-bench --python $(which python) --frappe-path $TRAVIS_BUILD_DIR
  - cp -r $TRAVIS_BUILD_DIR/test_sites/test_site ~/frappe-bench/sites/

before_script:
  - cd ~/frappe-bench
  - sed -i 's/9000/9001/g' sites/common_site_config.json
  - bench start &
  - sleep 10

script:
  - mysql -u root -ptravis -e "CREATE DATABASE test_frappe"
  - mysql -u root -ptravis -e "CREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe'"
  - mysql -u root -ptravis -e "GRANT ALL PRIVILEGES ON \`test_frappe\`.* TO 'test_frappe'@'localhost'"
  - mysql -u root -ptravis -e "FLUSH PRIVILEGES"

  - bench --site test_site reinstall --yes
  - bench --site test_site scheduler disable
  - bench --site test_site run-tests --coverage


after_script:
  - pip install python-coveralls
  - coveralls -b apps/frappe -d ../../sites/.coverage<commit_msg>fix(travis): Do not build assets<commit_after>language: python
dist: trusty
sudo: required

python:
  - 3.6

services:
  - mysql

install:
  - source ~/.nvm/nvm.sh
  - nvm install v8.10.0

  - git clone https://github.com/adityahase/bench --depth 1 --branch faster
  - pip install -e ./bench

  - rm $TRAVIS_BUILD_DIR/.git/shallow
  - cd ~/ && bench init frappe-bench --skip-assets --python $(which python) --frappe-path $TRAVIS_BUILD_DIR
  - cp -r $TRAVIS_BUILD_DIR/test_sites/test_site ~/frappe-bench/sites/

before_script:
  - cd ~/frappe-bench
  - sed -i 's/9000/9001/g' sites/common_site_config.json
  - bench start &
  - sleep 10

script:
  - mysql -u root -ptravis -e "CREATE DATABASE test_frappe"
  - mysql -u root -ptravis -e "CREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe'"
  - mysql -u root -ptravis -e "GRANT ALL PRIVILEGES ON \`test_frappe\`.* TO 'test_frappe'@'localhost'"
  - mysql -u root -ptravis -e "FLUSH PRIVILEGES"

  - bench --site test_site reinstall --yes
  - bench --site test_site scheduler disable
  - bench --site test_site run-tests --coverage


after_script:
  - pip install python-coveralls
  - coveralls -b apps/frappe -d ../../sites/.coverage
{'fraction_non_alphanumeric': 0.13447537473233404, 'fraction_numerical': 0.014561027837259101, 'mean_word_length': 2.8933333333333335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1714050', 'n_tokens_mistral': 911, 'n_tokens_neox': 900, 'n_words': 234}