forked from sensational/sassphp
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.travis.yml
76 lines (63 loc) · 1.86 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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