<commit_before>sudo: required
services:
  - docker
language: node_js
node_js:
  - "node"
branches:
  only:
  - master
  - /^[0-9]+\.[0-9]+$/
  - code-coverage
notifications:
  slack:
    secure: DzxZ8DNGFANLnls0j0/hiKjwg6aO/gI3UO8SiRKjqCO/x27uvBCJiDkTqCx834XVzuDBp6LIdHbyUuwRFyaVHyFYTbA0pqE4fe4/DxkK5DuRDj89cw8JgoK7/g9m/J9Y6GvwaOaE4SW0tnHeTwNDVCt7/w8rn1kxDo/tWtS+3cg=
before_install:
  - docker build -t pltest .
install:
  - npm i coveralls -g
script:
  - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then sh ./tools/verify-changelog.sh; fi'
  - docker run -it --name=npm_test_container pltest /PrairieLearn/docker/npm_test.sh
  - docker cp npm_test_container:/PrairieLearn/coverage .
  - docker run -it pltest /PrairieLearn/docker/lint_js.sh
  - docker run -it pltest /PrairieLearn/docker/lint_python.sh
after_success:
  - cat ./coverage/lcov.info | coveralls --verbose<commit_msg>Try symlink fix<commit_after>sudo: required
services:
  - docker
language: node_js
node_js:
  - "node"
branches:
  only:
  - master
  - /^[0-9]+\.[0-9]+$/
  - code-coverage
notifications:
  slack:
    secure: DzxZ8DNGFANLnls0j0/hiKjwg6aO/gI3UO8SiRKjqCO/x27uvBCJiDkTqCx834XVzuDBp6LIdHbyUuwRFyaVHyFYTbA0pqE4fe4/DxkK5DuRDj89cw8JgoK7/g9m/J9Y6GvwaOaE4SW0tnHeTwNDVCt7/w8rn1kxDo/tWtS+3cg=
before_install:
  - docker build -t pltest .
install:
  - npm i coveralls -g
script:
  - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then sh ./tools/verify-changelog.sh; fi'
  - docker run -it --name=npm_test_container pltest /PrairieLearn/docker/npm_test.sh
  - docker cp npm_test_container:/PrairieLearn/coverage .
  - docker run -it pltest /PrairieLearn/docker/lint_js.sh
  - docker run -it pltest /PrairieLearn/docker/lint_python.sh
after_success:
  - pwd
  - ln -s . /PrairieLearn
  - cat ./coverage/lcov.info | coveralls
{'fraction_non_alphanumeric': 0.12024608501118568, 'fraction_numerical': 0.03691275167785235, 'mean_word_length': 3.9419889502762433, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '556758', 'n_tokens_mistral': 893, 'n_tokens_neox': 809, 'n_words': 122}