Skip to content
Snippets Groups Projects
Select Git revision
  • 6edab656c86c1ba27b2cfdf54215f28e348aaa6b
  • master default protected
  • symfony-serializer-7
3 results

.travis.yml

Blame
  • user avatar
    Simonas Šerlinskas authored and GitHub committed
    * Moved all tests to Unit folder
    
    * updated travis to install elasticsearch
    
    * updated composer to install elasticsearch
    
    * updated namespace in unit tests
    
    * added funtional tests
    
    * fix match all query composing
    
    When there are no parameters it has to return \stdClass.
    
    (cherry picked from commit 5970e92)
    
    * updated unit test for match all query
    
    * constants can only have underscore dash
    
    * fixed psr style issues
    
    * updated travis
    
    * exclude not compatible versions
    6edab656
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    .travis.yml 1.16 KiB
    sudo: true
    language: php
    php:
      - 5.4
      - 5.5
      - 5.6
      - 7.0
      - hhvm
    env:
      global:
        - JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre"
      matrix:
        - ES_VERSION="5.0" ELASTICSEARH_PHP="~5.0"
        - ES_VERSION="2.4" ELASTICSEARH_PHP="~2.0"
    matrix:
      allow_failures:
        - php: hhvm
      exclude:
        - php: 5.4
          env: ES_VERSION="5.0" ELASTICSEARH_PHP="~5.0"
        - php: 5.5
          env: ES_VERSION="5.0" ELASTICSEARH_PHP="~5.0"
    install:
      # Container based PHP image ues PHP 5.6.5, once it will be upgraded sudo will be not necessary
      - sudo apt-get install -y oracle-java8-set-default
      - ES_URL=$(curl -sS "https://esvm-props.kibana.rocks/builds" | jq -r ".branches[\"$ES_VERSION\"].zip")
      - curl -L -o elasticsearch.zip $ES_URL
      - unzip elasticsearch.zip
      - ./elasticsearch-*/bin/elasticsearch -d
    before_script:
      - composer require --no-update elasticsearch/elasticsearch:${ELASTICSEARH_PHP}
      - composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH
      - composer install --no-interaction --prefer-dist
    script:
      - vendor/bin/phpunit --coverage-clover=coverage.clover
      - vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor/ ./
    after_script:
      - vendor/bin/coveralls