forked from guardian-ils/guardian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
70 lines (61 loc) · 1.64 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
language: php
sudo: required
dist: trusty
group: edge
cache:
directories:
- $HOME/.composer
php:
- '5.5'
- '5.6'
- '7.0'
- nightly
- hhvm-3.12
- hhvm-nightly
env:
# to properly install phpX-pgsql
- DB=pgsql
- DB=hhvm-pgsql
addons:
postgresql: '9.4'
matrix:
exclude:
# PDO driver for pgsql is unsupported by HHVM (3rd party install for support)
- php: hhvm-3.9
env: DB=pgsql
- php: hhvm-3.12
env: DB=pgsql
- php: hhvm-nightly
env: DB=pgsql
# Skip hhvm-pgsql installation in normal php
- php: '5.5'
env: DB=hhvm-pgsql
- php: '5.6'
env: DB=hhvm-pgsql
- php: '7.0'
env: DB=hhvm-pgsql
- php: 'nightly'
env: DB=hhvm-pgsql
before_install:
- composer self-update --stable
- export DB_CONNECTION=pgsql
- export DB_HOST=127.0.0.1
- export DB_DATABASE=travis
- export DB_USERNAME=travis
- export DB_PASSWORD=""
- export DB_SCHEMA=public
- psql -U "$DB_USERNAME" --host="$DB_HOST" "$DB_DATABASE" -c 'CREATE EXTENSION "uuid-ossp";'
- sh -c "if [ '$DB' = 'hhvm-pgsql' ]; then ./.travis/install_hhvm_pgsql.sh; fi"
- sh -c "if [ '$DB' != 'hhvm-pgsql' ]; then ./.travis/install_php_apc.sh || echo 'Fail to install apc'; fi"
- sh -c "if [ '$DB' != 'hhvm-pgsql' ] && [ '$(php -r 'echo extension_loaded("xdebug");')' != '1' ]; then echo 'xdebug not loaded'; fi"
install:
- composer install --prefer-dist -vvv -o
- cp -pdf .env.example .env
- php artisan key:generate
- php artisan migrate --pretend
script:
- php artisan migrate
- php artisan config:cache
- php artisan route:cache
- ./vendor/bin/phpunit -v
- php artisan migrate:rollback