forked from rocketeers/rocketeer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (47 loc) · 1.16 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
# Use Docker environment
sudo: false
# Setup build matrix
language: php
php:
- 5.6
- 7.0
- 7.1
matrix:
fast_finish: true
include:
- php: hhvm
sudo: required
dist: trusty
group: edge
env: IS_HHVM=1
allow_failures:
- php: hhvm
env:
matrix:
- COMPOSER_FLAGS="--prefer-lowest"
- COMPOSER_FLAGS=""
# Cache dependencies
cache:
directories:
- $HOME/.composer/cache
# Dependencies
before_install:
- phpenv config-rm xdebug.ini || return 0
- travis_retry composer self-update
- travis_retry composer global require hirak/prestissimo
install:
- travis_retry composer update --no-interaction --prefer-dist $COMPOSER_FLAGS
- if [[ $COMPOSER_FLAGS ]]; then composer update phpspec/prophecy php-vfs/php-vfs squizlabs/php_codesniffer; fi
script:
- composer test
- composer lint
- if [ ! $IS_HHVM ] && [ ! $COMPOSER_FLAGS ]; then composer build; fi
- if [ ! $IS_HHVM ] && [ ! $COMPOSER_FLAGS ]; then php bin/rocketeer.phar --version; fi
# Gitter notifications
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/c7e5d662086972567218
on_success: change
on_failure: always
on_start: false