Codebase list sassphp / 56ae286c-b50f-4642-897c-4835b8938640/upstream .travis.yml
56ae286c-b50f-4642-897c-4835b8938640/upstream

Tree @56ae286c-b50f-4642-897c-4835b8938640/upstream (Download .tar.gz)

.travis.yml @56ae286c-b50f-4642-897c-4835b8938640/upstreamraw · history · blame

language: php
php:
  - 7.1
  - 7.2
  - 7.3
  - 7.4
  - nightly
  
jobs:
  allow_failures:
  - php: nightly

addons:
  apt:
    packages:
      - php-dev
      - gdb

env:
  global:
    # Configure the .phpt tests to be Travis friendly
    - REPORT_EXIT_STATUS=1
    - TEST_PHP_ARGS="-q -s output.txt -g XFAIL,FAIL,BORK,WARN,LEAK,SKIP -x --show-diff"
    # Add the pip installation folder to the PATH, until https://github.com/travis-ci/travis-ci/issues/3563 is fixed
    - PATH=$HOME/.local/bin:$PATH

compiler:
  - gcc

install:
 # What is the current file size max for core files?
 # It is usually 0, which means no core file will be dumped if there is a crash 
 - ulimit -c

before_install:
  - echo $LANG
  - echo $LC_ALL
  - composer require --dev php-coveralls/php-coveralls
  - git submodule init
  - git submodule update

before_script:
  - travis_retry composer self-update
  - composer config discard-changes true
  - ulimit -c unlimited -S       # enable core dumps

script:
  - make clean
  - cd lib/libsass && make && cd ../..
  - phpize
  - ./configure
  - make
  - echo "extension = sass.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${TRAVIS_BUILD_DIR}/modules"
  - make install
  - mkdir -p build/logs
  - phpunit --coverage-clover build/logs/clover.xml
  - make test || RESULT=$?
  - if [[ ${RESULT} == 0 ]]; then echo "\\o/ our test worked without problems"; else echo "ruhroh test returned an errorcode of $RESULT"; fi;
  - for i in $(find ./ -maxdepth 1 -name 'core*' -print); do gdb $(pwd)/test core* -ex "thread apply all bt" -ex "set pagination 0" -batch; done;
  - if [[ ${RESULT} != 0 ]]; then exit $RESULT ; fi;

after_success:
  - travis_retry php vendor/bin/coveralls
  - bash <(curl -s https://codecov.io/bash)

notifications:
    on_success: never
    on_failure: never


os:
  - linux

matrix:
  fast_finish: true