-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
40 lines (34 loc) · 1.17 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
language: php
addons:
apt:
packages:
- php5-pgsql
postgresql: "9.4"
sudo: true
php:
- 5.5
- 5.6
- 7.0
- hhvm
install:
# fix ipv6 issue that prevented composer requests and resulted in failing builds
- sudo sh -c "echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf"
# updates composer on travis
- travis_retry composer self-update
# clear composer cache, might speed up finding new tags
- travis_retry composer clear-cache
# set the global github token, so connections won't be cancelled
- composer config -g github-oauth.github.com $GITHUB_TOKEN
# create a new database for the hyn connection
- mysql -e "create database hyn;" -uroot
- mysql -e "grant all privileges on *.* to 'travis'@'localhost' with grant option;" -uroot
- psql -c 'create database hyn;' -U postgres
- psql -c 'alter default privileges in schema public grant all on tables to travis;' -U postgres
# install dependancies
- travis_retry composer install --prefer-source --no-interaction --dev
# set global variables
- export DB_USERNAME=travis DB_DATABASE=hyn DB_PASSWORD= QUEUE_DRIVER=sync
script:
- phpunit
after_success:
- bash <(curl -s https://codecov.io/bash)