<commit_before>notifications:
  email: false
  irc:
    channels:
      - "irc.mysociety.org#fixmystreet"
    use_notice: true
    skip_join: true

language: perl
perl:
  - "5.14"

branches:
  only:
    - master

before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq jhead libgmp-dev
# A couple of other modules that normally come from packages, but no system stuff here
  - cpanm -q Carton Locale::gettext Math::BigInt::GMP
# This is because of a bug in its test (it's empty), and SOAP::Lite depends on it.
# Would be good to not have SOAP::Lite as a dependency at all really.
  - cpanm -q DIME::Tools --force
# And let's install the same version the carton.lock file currently has.
  - cpanm -q MKUTTER/SOAP-Lite-0.715.tar.gz
  - sudo locale-gen cy_GB.UTF-8 en_GB.UTF-8 nb_NO.UTF-8 de_CH.UTF-8
install:
  - carton install --deployment
before_script:
  - psql -c 'create database fms;' -U postgres
  - psql fms postgres < db/schema.sql
  - psql fms postgres < db/alert_types.sql
  - psql fms postgres < db/generate_secret.sql
  - >
    sed -r -e "s,(FMS_DB_USER:) 'fms',\\1 'postgres',"
    -e "s,cobrand_one,fixmystreet,"
    -e "s,cobrand_two: 'hostname_substring2',fixmystreet: 'localhost',"
    -e "s,cobrand_three,zurich,"
    -e "s,(BASE_URL:) 'http://www.example.org',\\1 'http://localhost',"
    -e "s,(MAPIT_URL:) '',\\1 'http://mapit.mysociety.org/',"
    conf/general.yml-example > conf/general.yml
  - ./bin/cron-wrapper ./bin/make_po FixMyStreet-EmptyHomes<commit_msg>Add lots of cobrands to be tested.<commit_after>notifications:
  email: false
  irc:
    channels:
      - "irc.mysociety.org#fixmystreet"
    use_notice: true
    skip_join: true

language: perl
perl:
  - "5.14"

branches:
  only:
    - master

before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq jhead libgmp-dev
# A couple of other modules that normally come from packages, but no system stuff here
  - cpanm -q Carton Locale::gettext Math::BigInt::GMP
# This is because of a bug in its test (it's empty), and SOAP::Lite depends on it.
# Would be good to not have SOAP::Lite as a dependency at all really.
  - cpanm -q DIME::Tools --force
# And let's install the same version the carton.lock file currently has.
  - cpanm -q MKUTTER/SOAP-Lite-0.715.tar.gz
  - sudo locale-gen cy_GB.UTF-8 en_GB.UTF-8 nb_NO.UTF-8 de_CH.UTF-8
install:
  - carton install --deployment
before_script:
  - psql -c 'create database fms;' -U postgres
  - psql fms postgres < db/schema.sql
  - psql fms postgres < db/alert_types.sql
  - psql fms postgres < db/generate_secret.sql
  - >
    sed -r -e "s,(FMS_DB_USER:) 'fms',\\1 'postgres',"
    -e "s,cobrand_one,barnet\\n  - bromley\\n  - emptyhomes\\n  - fiksgatami\\n  - fixmybarangay\\n  - lichfielddc\\n  - reading\\n  - seesomething\\n  - southampton\\n  - zurich,"
    -e "s,cobrand_two: 'hostname_substring2',fixmystreet: '.',"
    -e "s,(BASE_URL:) 'http://www.example.org',\\1 'http://localhost',"
    -e "s,(MAPIT_URL:) '',\\1 'http://mapit.mysociety.org/',"
    conf/general.yml-example > conf/general.yml
  - ./bin/cron-wrapper ./bin/make_po FixMyStreet-EmptyHomes
{'fraction_non_alphanumeric': 0.1391109689798529, 'fraction_numerical': 0.009593859929645027, 'mean_word_length': 3.051813471502591, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2787992', 'n_tokens_mistral': 1233, 'n_tokens_neox': 1182, 'n_words': 315}