<commit_before>language: php

php:
  - 5.4
  - 5.5
  - 5.6
  - hhvm

before_install:
  - composer selfupdate

install:
    - |
        sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then \
          git clone git://github.com/bitcoin/secp256k1.git libsecp256k1 \
          && cd libsecp256k1 \
          && ./autogen.sh && ./configure && make && sudo make install \
          && cd ..; fi'
    - |
        sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then \
          git clone git://github.com/Bit-Wasp/secp256k1-php \
          && cd secp256k1-php/secp256k1 \
          && phpize && ./configure && make && sudo make install \
          && cd ../..; fi'
    - composer update

script:
  - php -dextension=secp256k1.so bin/phpunit --coverage-clover build/logs/clover.xml
  - php bin/phpcs -n --standard=PSR1,PSR2 --report=full src/
##  - php bin/phpmd src/ text build/rulesets/phpmd.xml

after_script:
  - php vendor/bin/coveralls
  - wget https://scrutinizer-ci.com/ocular.phar
  - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" && "$TRAVIS_PHP_VERSION" != "nightly" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;'

matrix:
    fast_finish: true

notifications:<commit_msg>Oops - restore travis.yml to before I started messing<commit_after>language: php

php:
  - 5.4
  - 5.5
  - 5.6
  - hhvm
  - nightly

env:
  - EXT_SECP256K1="-dextension=secp256k1.so"
  - EXT_SECP256K1=""

before_install:
  - composer selfupdate

install:
    - |
        sh -c 'if [ "$EXT_SECP256K1" != "" ]; then \
          git clone git://github.com/bitcoin/secp256k1.git libsecp256k1 \
          && cd libsecp256k1 \
          && ./autogen.sh && ./configure && make && sudo make install \
          && cd ..; fi'
    - |
        sh -c 'if [ "$EXT_SECP256K1" != "" ]; then \
          git clone git://github.com/Bit-Wasp/secp256k1-php \
          && cd secp256k1-php/secp256k1 \
          && phpize && ./configure && make && sudo make install \
          && cd ../..; fi'
    - composer update --prefer-source

script:
  - php $EXT_SECP256K1 bin/phpunit --coverage-clover build/logs/clover.xml
  - php bin/phpcs -n --standard=PSR1,PSR2 --report=full src/
##  - php bin/phpmd src/ text build/rulesets/phpmd.xml

after_script:
  - php vendor/bin/coveralls
  - wget https://scrutinizer-ci.com/ocular.phar
  - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;'

matrix:
    fast_finish: true
    exclude:
      ## exclude hhvm + extension because it's a zend extension
      - php: hhvm
        env: EXT_SECP256K1="-dextension=secp256k1.so"

      ## exclude nightly + extension until the extension itself actually passes tests
      - php: nightly
        env: EXT_SECP256K1="-dextension=secp256k1.so"

notifications:
{'fraction_non_alphanumeric': 0.1478199220134704, 'fraction_numerical': 0.03828429634881248, 'mean_word_length': 2.273781902552204, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '6662220', 'n_tokens_mistral': 1128, 'n_tokens_neox': 1050, 'n_words': 218}