-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
66 lines (59 loc) · 1.84 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
language: php
sudo: required
dist: precise
matrix:
include:
- php: 5.6
env: DB=mariadb
- php: 5.6
env: DB=postgres
- php: 5.6
env: DB=sqlite3
- php: 5.6
env: DB=mysqli
- php: 5.6
env: DB=mysql
- php: 7.0
env: DB=mysqli
- php: 7.1
env: DB=mysqli
- php: 7.2
env: DB=mysqli
- php: nightly
env: DB=mysqli
allow_failures:
- php: nightly
fast_finish: true
env:
global:
- SNIFF="1" # Should we run code sniffer on your code?
- IMAGE_ICC="1" # Should we run icc profile sniffer on your images?
- EPV="1" # Should we run EPV (Extension Pre Validator) on your code?
branches:
only:
- master
- develop
- /^dev\/.*$/
- /^issue\/.*$/
install:
- composer install --dev --no-interaction --prefer-source
- mkdir survey
- mv `find . -maxdepth 1 ! -name . ! -name survey` survey
- mkdir -p survey/travis
- git clone --depth=1 "git://github.com/phpbb/phpbb.git" --branch=3.2.x
- cp -R phpbb/travis/* survey/travis
- mkdir phpbb/phpBB/ext/kilianr
- mv survey phpbb/phpBB/ext/kilianr
- cd phpbb
- travis/setup-phpbb.sh $DB $TRAVIS_PHP_VERSION
before_script:
- travis/setup-database.sh $DB $TRAVIS_PHP_VERSION
notifications:
slack:
on_success: change
on_failure: change
script:
- sh -c "if [ '$SNIFF' != '0' ]; then travis/ext-sniff.sh $DB $TRAVIS_PHP_VERSION kilianr/survey; fi"
- sh -c "if [ '$IMAGE_ICC' != '0' ]; then travis/check-image-icc-profiles.sh $DB $TRAVIS_PHP_VERSION; fi"
- phpBB/vendor/bin/phpunit --configuration phpBB/ext/kilianr/survey/travis/phpunit-$DB-travis.xml --bootstrap ./tests/bootstrap.php
- sh -c "if [ '$EPV' != '0' ] && [ '$TRAVIS_PHP_VERSION' = '5.6' ] && [ '$DB' = 'mysqli' ]; then phpBB/ext/kilianr/survey/vendor/bin/EPV.php run --dir='phpBB/ext/$EXTNAME/'; fi"