forked from Gemorroj/Archive7z
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (39 loc) · 1.15 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
language: php
php:
- 7.3
- 7.4
- 8.0
- nightly
matrix:
allow_failures:
- php: nightly
fast_finish: true
env:
matrix:
- DEPENDENCIES="high"
- DEPENDENCIES="low"
global:
- DEFAULT_COMPOSER_FLAGS="--no-interaction --ansi --no-progress --no-suggest --prefer-dist"
cache:
directories:
- $HOME/.composer/cache
before_install:
# Install p7zip
# - sudo apt-get install p7zip-full
- curl -L http://downloads.sourceforge.net/project/p7zip/p7zip/16.02/p7zip_16.02_src_all.tar.bz2 > p7zip_16.02_src_all.tar.bz2
- tar xjvf p7zip_16.02_src_all.tar.bz2
- cd p7zip_16.02
- make all3
- sudo ./install.sh
- sudo ln /usr/local/bin/7za /usr/bin/7za
- sudo ln /usr/local/bin/7z /usr/bin/7z
- cd ..
- composer validate
install:
- if [[ "$DEPENDENCIES" = 'high' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS; fi
- if [[ "$DEPENDENCIES" = 'low' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS --prefer-lowest; fi
script:
- vendor/bin/phpunit --configuration phpunit.xml.dist
notifications:
email:
on_failure: change