forked from phpbrew/phpbrew
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
126 lines (126 loc) · 3 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
language: php
services:
- mysql
- postgresql
matrix:
fast_finish: true
allow_failures:
- php: nightly
# env:
# matrix:
# - TEST_SUITE=Core
# - TEST_SUITE=Command
# - TEST_SUITE=Extension
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
# - nightly
sudo: required
addons:
apt:
packages:
- ctags
- language-pack-de
- libaspell-dev
- libenchant-dev
- libgmp-dev
- libicu-dev
- libmcrypt-dev
- libpspell-dev
- librecode-dev
- libsasl2-dev
- libt1-dev
- libtidy-dev
- libxpm-dev
- locales
- re2c
# packages for gd variant
- libfreetype6
- libfreetype6-dev
- libpng12-0
- libpng12-dev
- libjpeg-dev
- libjpeg8-dev
- libjpeg8
# - libgd-dev this package doesn't exist on Ubuntu 12.04
# - libgd3 doesn't exists on Travis CI
- libxpm4
# packages for intl variant
- libicu-dev
# packages for openssl variant
- libssl-dev
- openssl
# packages for apxs2
- apache2
before_install:
- |
if [[ ${TRAVIS_PHP_VERSION:0:3} < "5.6" ]]; then # use phpunit 4.8.35 for 5.3/5.4/5.5
composer require phpunit/phpunit ~4;
else # and use 5.7 for 5.6/7.0/7.1
composer require phpunit/phpunit ~5;
fi
install:
- travis_retry composer install --no-interaction
before_script:
# see if ccache is working
- export USE_CCACHE=1
- export PATH=/usr/lib/ccache:$PATH
- phpenv rehash
- export PATH=$PATH:$PWD/vendor/bin/
- mkdir -p -v .phpbrew/build .phpbrew/distfiles .phpbrew/registry .phpbrew/php
- rm phpbrew
- cp -v shell/bashrc .phpbrew/
script:
- source shell/bashrc
- phpunit --version
- which phpunit
- vendor/bin/phpunit --exclude-group mayignore
after_success:
- ccache -s
- travis_retry php vendor/bin/coveralls -v
cache:
apt: true
ccache: true
directories:
- "vendor"
- ".phpbrew/distfiles"
- ".phpbrew/cache"
- "$HOME/.ccache"
before_deploy:
- make build
deploy:
- provider: s3
access_key_id: AKIAJCOXUMKVDHFVNS6Q
secret_access_key:
secure: FKUkXHugu4zB4hs6LEv399z6neV8jGZpJP/cTCvKsTiKiomZKnOznxMwZhYIXOAr6CzQvW+9zCp0IzZCZcIo6x7HBdgsiEfF/1yPx2zUuJbaiqa7XCkfFd5p1nKmNcprL/KXwvXOueZ5J7QhV67+x3kVArbt+uvm9glXBX/aHmM=
bucket: phpbrew
acl: public_read
upload-dir: travis-build/master
local_dir: build
skip_cleanup: true
on:
repo: phpbrew/phpbrew
branch: 'master'
- provider: s3
access_key_id: AKIAJCOXUMKVDHFVNS6Q
secret_access_key:
secure: FKUkXHugu4zB4hs6LEv399z6neV8jGZpJP/cTCvKsTiKiomZKnOznxMwZhYIXOAr6CzQvW+9zCp0IzZCZcIo6x7HBdgsiEfF/1yPx2zUuJbaiqa7XCkfFd5p1nKmNcprL/KXwvXOueZ5J7QhV67+x3kVArbt+uvm9glXBX/aHmM=
bucket: phpbrew
acl: public_read
upload-dir: travis-build/develop
local_dir: build
skip_cleanup: true
on:
repo: phpbrew/phpbrew
branch: 'develop'
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/8a279012c99e209a89ae
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always