<commit_before>language: c
compiler:
  - gcc

before_script:
  - NGINX_VERSION=1.5.8
  - CIRON_VERSION=1.2
  - HAWKC_VERSION=0.8.2
  - export IRON_PASSWORD_1=<PASSWORD>
  - cd ../
  - curl -LO http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
  - tar -xzf nginx-${NGINX_VERSION}.tar.gz
  - rm nginx-${NGINX_VERSION}.tar.gz
  - curl -LO https://github.com/algermissen/ciron/archive/v${CIRON_VERSION}.zip
  - unzip v${CIRON_VERSION}.zip
  - rm v${CIRON_VERSION}.zip
  - curl -LO https://github.com/algermissen/hawkc/archive/v${HAWKC_VERSION}.zip
  - unzip v${HAWKC_VERSION}.zip
  - rm v${HAWKC_VERSION}.zip
  - cd ciron-${CIRON_VERSION}
  - ./configure && make all && make test
  - sudo make install
  - cd ..
  - cd hawkc-${HAWKC_VERSION}
  - ./configure && make all && make test
  - sudo make install
  - cd ..
  - find .
  - ls /usr/local/include
  - ls /usr/local/lib
  - cd nginx-${NGINX_VERSION}
  - ls
  - ./configure --add-module=../nginx-dlg-auth
  - make && sudo make install
  - cd ..
  - cat nginx-dlg-auth/test/nginx.conf | m4 -DIRON_PASSWORD_1=$IRON_PASSWORD_1 > tmp
  - sudo cp tmp /usr/local/nginx/conf/nginx.conf
  - rm tmp
  - cat /usr/local/nginx/conf/nginx.conf
  - cat nginx-dlg-auth/test/grant.json | iron -i 1 -p pwd1 > nginx-dlg-auth/test/token
  - export AUTH=$(hawk -i `cat nginx-dlg-auth/test/token` -p 'v8(9D1A>7n9J<' -H localhost -P /protected -O 80 -M GET -a sha256 -m header)
  - echo $AUTH
  - chmod a+x nginx-dlg-auth/test/run_tests.sh
  - chmod a+x nginx-dlg-auth/test/test*

script: cd nginx-dlg-auth/test; ./run_tests.sh


after_script:
  - cat /usr/local/nginx/logs/access.log
  - cat /usr/local/nginx/logs/error.log
<commit_msg>Work on Travis-CI configuration<commit_after>language: c
compiler:
  - gcc

before_script:
  - NGINX_VERSION=1.5.8
  - CIRON_VERSION=1.2
  - HAWKC_VERSION=0.8.2
  - export IRON_PASSWORD_1=<PASSWORD>
  - cd ../
  - curl -LO http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
  - tar -xzf nginx-${NGINX_VERSION}.tar.gz
  - rm nginx-${NGINX_VERSION}.tar.gz
  - curl -LO https://github.com/algermissen/ciron/archive/v${CIRON_VERSION}.zip
  - unzip v${CIRON_VERSION}.zip
  - rm v${CIRON_VERSION}.zip
  - curl -LO https://github.com/algermissen/hawkc/archive/v${HAWKC_VERSION}.zip
  - unzip v${HAWKC_VERSION}.zip
  - rm v${HAWKC_VERSION}.zip
  - cd ciron-${CIRON_VERSION}
  - ./configure && make all && make test
  - sudo make install
  - cd ..
  - cd hawkc-${HAWKC_VERSION}
  - ./configure && make all && make test
  - sudo make install
  - cd ..
  - find .
  - ls /usr/local/include
  - ls /usr/local/lib
  - cd nginx-${NGINX_VERSION}
  - ls
  - ./configure --add-module=../nginx-dlg-auth
  - make && sudo make install
  - cd ..
  - cat nginx-dlg-auth/test/nginx.conf | m4 -DIRON_PASSWORD_1=$<PASSWORD> > tmp
  - sudo cp tmp /usr/local/nginx/conf/nginx.conf
  - rm tmp
  - cat /usr/local/nginx/conf/nginx.conf
  - cat nginx-dlg-auth/test/grant.json | iron -i 1 -p $IRON_PASSWORD_1 > nginx-dlg-auth/test/token
  - export AUTH=$(hawk -i `cat nginx-dlg-auth/test/token` -p 'v8(9D1A>7n9J<' -H localhost -P /protected -O 80 -M GET -a sha256 -m header)
  - echo $AUTH
  - chmod a+x nginx-dlg-auth/test/run_tests.sh
  - chmod a+x nginx-dlg-auth/test/test*

script: cd nginx-dlg-auth/test; ./run_tests.sh


after_script:
  - cat /usr/local/nginx/logs/access.log
  - cat /usr/local/nginx/logs/error.log

{'fraction_non_alphanumeric': 0.16344725111441308, 'fraction_numerical': 0.013967310549777118, 'mean_word_length': 2.6547231270358305, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 12, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '556844', 'n_tokens_mistral': 1485, 'n_tokens_neox': 1415, 'n_words': 257}