<commit_before>language: node_js

sudo: required
dist: trusty

node_js:
- stable

addons:
  postgresq: '9.4'

python:
- 2.7

notifications:
  email:
    on_success: change
    on_failure: always

cache:
  directories:
  - bower_components

before_install:
  - sudo apt-get -y update
  - sudo service postgresql stop
  - sudo apt-get -y purge postgresql-9.1 postgresql-9.2 postgresql-9.3
  - sudo service postgresql start 9.4
  - sudo apt-get -y install libpq-dev postgresql-server-dev-9.4 python-dev
  - sudo apt-get -y install apache2 apache2-dev libjson-c-dev ssl-cert libapache2-mod-wsgi python python-dateutil python-ply python-tz
  - sudo apt-get -y purge python-psycopg2
  - sudo pip install web.py
  - sudo pip install psycopg2
  - sudo ln -s /etc/apache2/conf-enabled /etc/apache2/conf.d
  - sudo a2enmod ssl
  - sudo a2ensite default-ssl
  - cd ..
  - git clone https://github.com/informatics-isi-edu/webauthn.git
  - cd webauthn
  - sudo make testvars
  - sudo make install
  - sudo make deploy
  - cd ..
  - git clone https://github.com/informatics-isi-edu/ermrest.git
  - cd ermrest
  - sudo make install PLATFORM=ubuntu1204
  - sudo make deploy PLATFORM=ubuntu1204
  - cd ..
  - curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
  - sudo apt-get install -y nodejs
  - cd ermrestjs
  - sudo npm install
  - bower install

install:
  - sudo make build
  - sudo service apache2 restart
  - sudo ls -lR /var/www/html/ermrestjs

before_script:
  - sudo -H -u webauthn webauthn2-manage adduser test1
  - sudo -H -u webauthn webauthn2-manage passwd test1 <PASSWORD>
  - sudo -H -u webauthn webauthn2-manage addattr admin
  - sudo -H -u webauthn webauthn2-manage assign test1 admin

after_failure:
  - sudo ls -lR /etc/apache2<commit_msg>Added ls logging to determine bower_components folder is created or not<commit_after>language: node_js

sudo: required
dist: trusty

node_js:
- stable

addons:
  postgresq: '9.4'

python:
- 2.7

notifications:
  email:
    on_success: change
    on_failure: always

cache:
  directories:
  - bower_components

before_install:
  - sudo apt-get -y update
  - sudo service postgresql stop
  - sudo apt-get -y purge postgresql-9.1 postgresql-9.2 postgresql-9.3
  - sudo service postgresql start 9.4
  - sudo apt-get -y install libpq-dev postgresql-server-dev-9.4 python-dev
  - sudo apt-get -y install apache2 apache2-dev libjson-c-dev ssl-cert libapache2-mod-wsgi python python-dateutil python-ply python-tz
  - sudo apt-get -y purge python-psycopg2
  - sudo pip install web.py
  - sudo pip install psycopg2
  - sudo ln -s /etc/apache2/conf-enabled /etc/apache2/conf.d
  - sudo a2enmod ssl
  - sudo a2ensite default-ssl
  - cd ..
  - git clone https://github.com/informatics-isi-edu/webauthn.git
  - cd webauthn
  - sudo make testvars
  - sudo make install
  - sudo make deploy
  - cd ..
  - git clone https://github.com/informatics-isi-edu/ermrest.git
  - cd ermrest
  - sudo make install PLATFORM=ubuntu1204
  - sudo make deploy PLATFORM=ubuntu1204
  - cd ..
  - curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
  - sudo apt-get install -y nodejs
  - cd ermrestjs
  - sudo npm install
  - bower install

install:
  - sudo make build
  - sudo service apache2 restart
  - sudo ls -lR 

before_script:
  - sudo -H -u webauthn webauthn2-manage adduser test1
  - sudo -H -u webauthn webauthn2-manage passwd test1 <PASSWORD>
  - sudo -H -u webauthn webauthn2-manage addattr admin
  - sudo -H -u webauthn webauthn2-manage assign test1 admin

after_failure:
  - sudo ls -lR /etc/apache2
{'fraction_non_alphanumeric': 0.09416408232308994, 'fraction_numerical': 0.023118127995489145, 'mean_word_length': 2.7784877529286476, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 1, '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': '852307', 'n_tokens_mistral': 1410, 'n_tokens_neox': 1287, 'n_words': 374}