Bimba.git

ref: 1913a6e05f9bade3a0e4fb9d527dd88e6dbff7c8

converter/server/vendor/rybakit/msgpack/.travis.yml


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
sudo: required

language: bash

services:
  - docker

env:
  - PHP_RUNTIME='php:7.1-cli' CHECK_CS=1
  - PHP_RUNTIME='php:7.2-cli' PHPUNIT_OPTS='--coverage-text --coverage-clover=coverage.clover'
  - PHP_RUNTIME='hhvm/hhvm:nightly'

matrix:
  allow_failures:
    - env: PHP_RUNTIME='hhvm/hhvm:nightly'
  fast_finish: true

install:
  - ./dockerfile.sh | tee /dev/tty | docker build -t msgpack -

script:
  - docker run --rm -v $(pwd):/msgpack -w /msgpack -e PHPUNIT_OPTS="$PHPUNIT_OPTS" msgpack
  - if [[ -n "$CHECK_CS" ]]; then
      docker run --rm -v $(pwd):/msgpack -w /msgpack msgpack php vendor/bin/php-cs-fixer fix --dry-run --diff --verbose .;
    fi

after_script:
  - if [[ -f coverage.clover ]]; then
      curl -sSOL https://scrutinizer-ci.com/ocular.phar &&
      docker run --rm -v $(pwd):/msgpack -w /msgpack msgpack php ocular.phar code-coverage:upload --format=php-clover coverage.clover;
    fi